|
|
|
@ -3,12 +3,12 @@ import os |
|
|
|
import sys |
|
|
|
import sys |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
if __name__ == "__main__": |
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eshop_project.settings.production") |
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eshop_project.settings.development") |
|
|
|
try: |
|
|
|
try: |
|
|
|
from django.core.management import execute_from_command_line |
|
|
|
from django.core.management import execute_from_command_line |
|
|
|
except ImportError: |
|
|
|
except ImportError: |
|
|
|
# The above import may fail for some other reason. Ensure that the |
|
|
|
# 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. |
|
|
|
# exceptions on Python 2. |
|
|
|
try: |
|
|
|
try: |
|
|
|
import django |
|
|
|
import django |
|
|
|
|