我正在尝试设置 djangoappengine。我已经从 git / bitbucket per here克隆了代码(按照 Google 的一些链接),复制到 django-testapp 并为我自己的应用程序重命名。
但是 python manage.py runserver 遇到了这个问题:
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/Users/gimli/sandbox/iAgri/whipple/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Users/gimli/sandbox/iAgri/whipple/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/gimli/sandbox/iAgri/whipple/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/Users/gimli/sandbox/iAgri/whipple/django/core/management/__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/Users/gimli/sandbox/iAgri/whipple/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/Users/gimli/sandbox/iAgri/whipple/djangoappengine/management/commands/runserver.py", line 5, in <module>
from django.db import connections
File "/Users/gimli/sandbox/iAgri/whipple/django/db/__init__.py", line 78, in <module>
connection = connections[DEFAULT_DB_ALIAS]
File "/Users/gimli/sandbox/iAgri/whipple/django/db/utils.py", line 94, in __getitem__
conn = backend.DatabaseWrapper(db, alias)
File "/Users/gimli/sandbox/iAgri/whipple/dbindexer/base.py", line 54, in DatabaseWrapper
return Wrapper(merged_settings, *args, **kwargs)
File "/Users/gimli/sandbox/iAgri/whipple/dbindexer/base.py", line 37, in __init__
super(BaseDatabaseWrapper, self).__init__(*args, **kwargs)
File "/Users/gimli/sandbox/iAgri/whipple/djangoappengine/db/base.py", line 290, in __init__
self.ops = DatabaseOperations(self)
TypeError: __init__() takes exactly 1 argument (2 given)
我用谷歌搜索,随着时间的推移,该项目似乎出现了此类错误,但没有一个解决方案似乎是最新的。
任何帮助,将不胜感激。