2013-08-23 4 views
-1

내가오류 : __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를 완전히 지원하지 않았기 때문에 오류가 발생했다고 말했습니다. HEROKU와 같은 PAAS에 앱을 배포하는 데있어 더 나은 지원과 기능을 갖춘 더 나은 옵션이 있기 때문에 해결하지 못했습니다. 그래서 나는 영웅으로 옮겼다.

0

보통 이런 오류가 불일치에서 오는 실행 장고-에 testapp의 설정에서이 오류를 얻고 소요 django, djangoappengine 또는 django-toolbox의 버전. 각각의 버전이 올바른지 확인하기 위해 다시 확인하고 싶을 것입니다.

관련 문제