Skip to content

Commit

Permalink
Update manage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Jan 10, 2023
1 parent 32482ab commit 2239cbb
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@
import os
import sys

from future.utils import raise_from

if __name__ == "__main__":
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE", "django_extra_field_validation.settings"
)
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise_from(
ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
),
exc,
except ImportError:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
)
execute_from_command_line(sys.argv)

0 comments on commit 2239cbb

Please sign in to comment.