Commit 7e4c70cd authored by Patrick's avatar Patrick

Django 1.8.5, Django-cms 3.2 rc 3

parent 183509d4
......@@ -2,9 +2,17 @@
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ptidej.settings")
os_environ = "DJANGO_SETTINGS_MODULE"
project = os.path.split(os.path.abspath(os.path.dirname(__file__)))[-1]
django_settings = "%s.common_settings" % project
os.environ.setdefault(os_environ, django_settings)
if os.environ.get(os_environ) != django_settings:
os.environ.pop(os_environ)
os.environ.setdefault(os_environ, django_settings)
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
execute_from_command_line(sys.argv)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment