Skip to content

Commit 564f556

Browse files
fix: remove unnecessary django command line from manage
1 parent 40ae6a7 commit 564f556

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

manage.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,3 @@
1111
if __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)

0 commit comments

Comments
 (0)