我正在尝试设置djangoappengine。我已经按照here克隆了git / bitbucket中的代码(遵循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)
我已经谷歌了,该项目似乎有这种错误随着时间的推移,但没有一个解决方案似乎是最新的。
任何帮助都将不胜感激。
答案 0 :(得分:1)
请勿使用bitbucket中的代码或来自allbuttonspressed的文档!
他们既老又过时。该项目的新家是:
<强> http://django-nonrel.org/ 强>
在那里,你会找到合适的文档和当前的下载链接。
答案 1 :(得分:1)
答案 2 :(得分:0)
allbuttonspressed docs非常陈旧,需要更新,特别是在安装方面。幸运的是有人建立了一个安装程序(我没试过):
https://groups.google.com/forum/?fromgroups=#!topic/django-non-relational/Nlkh-zldQ6w