We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b38b6dc commit 7673487Copy full SHA for 7673487
server/manage.py
@@ -9,12 +9,12 @@ def main():
9
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangobackend.settings')
10
try:
11
from django.core.management import execute_from_command_line
12
- except ImportError:
+ except ImportError as exc:
13
raise ImportError(
14
"Couldn't import Django. Are you sure it's installed and "
15
"available on your PYTHONPATH environment variable? Did you "
16
"forget to activate a virtual environment?"
17
- )
+ ) from exc
18
execute_from_command_line(sys.argv)
19
20
0 commit comments