2013-08-23 38 views
-1

我得到的Django的testapp的設置時,我跑錯誤的Django nonrel設置類型錯誤:__init __()恰恰1個參數(2給出)

[email protected]:~/projects/python/gae_django_nonrel_app/django-testapp$ python manage.py runserver 

Traceback (most recent call last): 
    File "manage.py", line 14, in <module> 
    execute_manager(settings) 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/__init__.py", line 438, in execute_manager 
    utility.execute() 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/__init__.py", line 379, in execute 
    self.fetch_command(subcommand).run_from_argv(self.argv) 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/__init__.py", line 261, in fetch_command 
    klass = load_command_class(app_name, subcommand) 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/__init__.py", line 67, in load_command_class 
    module = import_module('%s.management.commands.%s' % (app_name, name)) 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/utils/importlib.py", line 35, in import_module 
    __import__(name) 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/djangoappengine/management/commands/runserver.py", line 5, in <module> 
    from django.db import connections 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/db/__init__.py", line 78, in <module> 
    connection = connections[DEFAULT_DB_ALIAS] 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/db/utils.py", line 94, in __getitem__ 
    conn = backend.DatabaseWrapper(db, alias) 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/dbindexer/base.py", line 54, in DatabaseWrapper 
    return Wrapper(merged_settings, *args, **kwargs) 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/dbindexer/base.py", line 37, in __init__ 
    super(BaseDatabaseWrapper, self).__init__(*args, **kwargs) 
    File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/djangoappengine/db/base.py", line 290, in __init__ 
    self.ops = DatabaseOperations(self) 
TypeError: __init__() takes exactly 1 argument (2 given) 

回答

0

由於@dragonx表示錯誤是因爲我使用了最新的django-nonrel分支,並且完全不支持django1.5等等。我沒有試圖解決它,要麼是因爲我們有更好的選擇,更好的支持和功能,以部署PAAS上的應用程序,例如HEROKU。於是我轉向了HEROKU。

0

通常這樣的錯誤來自不匹配此錯誤django,djangoappengine或django-toolbox的版本。你想仔細檢查一下,確保你的每個版本都有正確的版本。

相關問題