diff options
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/createsuperuser.py | 2 | ||||
-rw-r--r-- | module/web/syncdb.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/module/web/createsuperuser.py b/module/web/createsuperuser.py index 892069f84..0ff1d15b8 100644 --- a/module/web/createsuperuser.py +++ b/module/web/createsuperuser.py @@ -6,7 +6,7 @@ import os import sys os.environ["DJANGO_SETTINGS_MODULE"] = 'settings' - +sys.path.append(os.path.join(pypath, "module", "web")) import getpass import re diff --git a/module/web/syncdb.py b/module/web/syncdb.py index d7905f2f9..669f22681 100644 --- a/module/web/syncdb.py +++ b/module/web/syncdb.py @@ -5,6 +5,7 @@ import os import sys os.environ["DJANGO_SETTINGS_MODULE"] = 'settings' +sys.path.append(os.path.join(pypath, "module", "web")) from django.conf import settings from django.core.management.base import NoArgsCommand @@ -144,8 +145,8 @@ def handle_noargs(**options): else: transaction.commit_unless_managed(using=db) - from django.core.management import call_command - call_command('loaddata', 'initial_data', verbosity=verbosity, database=db) + #from django.core.management import call_command + #call_command('loaddata', 'initial_data', verbosity=verbosity, database=db) if __name__ == "__main__": handle_noargs()
\ No newline at end of file |