diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-20 23:16:39 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-20 23:16:39 +0200 |
commit | 60964880943883de132e248b0deb3aaf8e5e67b5 (patch) | |
tree | 7773600894666c5f8db7ec7a32ddf3f2e8b33c8c /module/web | |
parent | setup improvements, UnRar fix (diff) | |
download | pyload-60964880943883de132e248b0deb3aaf8e5e67b5.tar.xz |
some win preparation
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 |