0
我在Windows 7上安裝的Django nonrel 1.4,蟒蛇2.73,GoogleAppEngine-1.8.2.msi錯誤試圖安裝Django的nonrel在Windows 7系統
我已重命名的文件Django的testapp- testapp-1.4剛剛Django的testapp
然後我複製下列文件夾到Django的testapp
自動加載,dbindexer,Django的,djangoappengine,djangotoolbox
所以最終的文件夾結構,看起來就像裏面:
django-testapp
autoload
dbindexer
django
djangoappengine
djangotoolbox
然後我運行manage.py runserver 並得到以下錯誤堆棧跟蹤。
C:\Users\Laurence\Documents\python_google_app_engine\django-testapp>manage.py ru
nserver
Traceback (most recent call last):
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\mana
ge.py", line 11, in <module>
execute_manager(settings)
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
go\core\management\__init__.py", line 438, in execute_manager
utility.execute()
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
go\core\management\__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
go\core\management\__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
go\core\management\__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
go\utils\importlib.py", line 35, in import_module
__import__(name)
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
goappengine\management\commands\runserver.py", line 5, in <module>
from django.db import connections
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
go\db\__init__.py", line 78, in <module>
connection = connections[DEFAULT_DB_ALIAS]
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
go\db\utils.py", line 94, in __getitem__
conn = backend.DatabaseWrapper(db, alias)
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\dbin
dexer\base.py", line 54, in DatabaseWrapper
return Wrapper(merged_settings, *args, **kwargs)
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\dbin
dexer\base.py", line 37, in __init__
super(BaseDatabaseWrapper, self).__init__(*args, **kwargs)
File "C:\Users\Laurence\Documents\python_google_app_engine\django-testapp\djan
goappengine\db\base.py", line 290, in __init__
self.ops = DatabaseOperations(self)
TypeError: __init__() takes exactly 1 argument (2 given)
C:\Users\Laurence\Documents\python_google_app_engine\django-testapp>
我希望有人能夠理解這一點,並能告訴我我出錯的地方。
謝謝dragonx你是對的。我正在使用以下頁面中的說明。 http://www.allbuttonspressed.com/projects/djangoappengine事實證明,鏈接到Django-Nonrel帶你到版本1.3,這已被棄用。除了Django的自動加載所有的文件夾需要1.4 – Laurence