File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 1111if __name__ == '__main__' :
1212 os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'test_utils.test_settings' )
1313 sys .path .append (PWD )
14- try :
15- from django .core .management import execute_from_command_line
16- except ImportError :
17- # The above import may fail for some other reason. Ensure that the
18- # issue is really that Django is missing to avoid masking other
19- # exceptions on Python 2.
20- try :
21- import django # pylint: disable=unused-import
22- except ImportError as error :
23- raise ImportError (
24- "Couldn't import Django. Are you sure it's installed and "
25- "available on your PYTHONPATH environment variable? Did you "
26- "forget to activate a virtual environment?"
27- ) from error
28- raise
29- execute_from_command_line (sys .argv )
You can’t perform that action at this time.
0 commit comments