diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-23 15:18:04 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-23 15:18:04 +0200 |
commit | dcbd99d398ba1735665410e9883242ab5ff12567 (patch) | |
tree | 9a9aa262f65607025d69865e160979591f3d4806 /module/setup.py | |
parent | better django compatbility (diff) | |
download | pyload-dcbd99d398ba1735665410e9883242ab5ff12567.tar.xz |
django 1.1 fix
Diffstat (limited to 'module/setup.py')
-rw-r--r-- | module/setup.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/module/setup.py b/module/setup.py index 63da0e83e..a75aede05 100644 --- a/module/setup.py +++ b/module/setup.py @@ -264,8 +264,14 @@ class Setup(): if db_setup: if is_db: remove(db_path) + from django import VERSION import sqlite3 - from module.web import syncdb + + if VERSION[:2] < (1,2): + from module.web import syncdb_django11 as syncdb + else: + from module.web import syncdb + from module.web import createsuperuser |