diff options
Diffstat (limited to 'module/web/syncdb.py')
-rw-r--r-- | module/web/syncdb.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 |