0

我正在尝试设置 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)

我用谷歌搜索,随着时间的推移,该项目似乎出现了此类错误,但没有一个解决方案似乎是最新的。

任何帮助,将不胜感激。

4

3 回答 3

1

要运行djangoappengine,请在您的应用程序根目录中获取以下模块并复制:

1.自动加载

2.数据库索引器

3.djangoappengine _

4.django工具箱

5.django(我认为它是可选的)

你可以得到django-testapp

于 2013-08-30T12:38:02.207 回答
1

不要使用来自 bitbucket 的代码或来自 allbuttonspressed 的文档!

它们既旧又过时。该项目的新家是:

http://django-nonrel.org/

在那里,您会找到不错的文档和当前的下载链接。

于 2013-04-19T12:06:19.390 回答
0

allbuttonspressed 文档很旧,需要更新,尤其是在安装方面。幸运的是,有人构建了一个安装程序(我没有尝试过):

https://groups.google.com/forum/?fromgroups=#!topic/django-non-relational/Nlkh-zldQ6w

于 2013-03-21T23:39:25.313 回答