Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(548)

Side by Side Diff: venv/Lib/site-packages/django/conf/project_template/manage.py-tpl

Issue 554060043: testMe
Patch Set: Created 2 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 import os
3 import sys
4
5 if __name__ == "__main__":
6 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings ")
7 try:
8 from django.core.management import execute_from_command_line
9 except ImportError:
10 # The above import may fail for some other reason. Ensure that the
11 # issue is really that Django is missing to avoid masking other
12 # exceptions on Python 2.
13 try:
14 import django
15 except ImportError:
16 raise ImportError(
17 "Couldn't import Django. Are you sure it's installed and "
18 "available on your PYTHONPATH environment variable? Did you "
19 "forget to activate a virtual environment?"
20 )
21 raise
22 execute_from_command_line(sys.argv)
OLDNEW
« no previous file with comments | « venv/Lib/site-packages/django/conf/locale/__init__.py ('k') | venv/Lib/site-packages/django/conf/urls/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b