Improve the settings method, allow for execution of mayan-edms.py without an existing local.py file

This commit is contained in:
Roberto Rosario
2014-10-09 19:34:51 -04:00
parent 0222474afa
commit 9bf1b3b95a
8 changed files with 23 additions and 12 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mayan.settings.local")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mayan.settings")
from django.core.management import execute_from_command_line