Warning, file /kdevelop/kdev-python/app_templates/django_project/manage.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/usr/bin/env python
0002 import os
0003 import sys
0004 
0005 if __name__ == "__main__":
0006     os.environ.setdefault("DJANGO_SETTINGS_MODULE", "%{APPNAMELC}.settings")
0007     try:
0008         from django.core.management import execute_from_command_line
0009     except ImportError:
0010         # The above import may fail for some other reason. Ensure that the
0011         # issue is really that Django is missing to avoid masking other
0012         # exceptions on Python 2.
0013         try:
0014             import django
0015         except ImportError:
0016             raise ImportError(
0017                 "Couldn't import Django. Are you sure it's installed and "
0018                 "available on your PYTHONPATH environment variable? Did you "
0019                 "forget to activate a virtual environment?"
0020             )
0021         raise
0022     execute_from_command_line(sys.argv)