update settings for manage.py

remotes/origin/HEAD
Max Yakovenko 8 years ago
parent c0d51dfac9
commit 8c737b2853
  1. 4
      manage.py

@ -3,12 +3,12 @@ import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eshop_project.settings.production")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eshop_project.settings.development")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
# issue is really that Django is missing to avoid masking other
# issue is really t hat Django is missing to avoid masking other
# exceptions on Python 2.
try:
import django

Loading…
Cancel
Save