i don't understand error. use django-nonrel, upload application manage.py. , sometimes have this:
<type 'exceptions.attributeerror'>: 'settings' object has no attribute 'database_routers' traceback (most recent call last): file "/base/data/home/apps/appid/3.347077242893060339/execute.py", line 2, in <module> djapp import queue_controller file "/base/data/home/apps/appid/3.347077242893060339/djapp/queue_controller.py", line 5, in <module> djapp.models import operation file "/base/data/home/apps/appid/3.347077242893060339/djapp/models.py", line 3, in <module> django.db import models file "/base/data/home/apps/appid/3.347077242893060339/django/db/__init__.py", line 66, in <module> router = connectionrouter(settings.database_routers) file "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/conf/__init__.py", line 32, in __getattr__ return getattr(self._target, name)
or
<type 'exceptions.importerror'>: no module named files.uploadhandler traceback (most recent call last): file "/base/data/home/apps/appid/3.347067228745038183/djangoappengine/main/main.py", line 28, in <module> django.core.handlers.wsgi import wsgihandler file "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/handlers/wsgi.py", line 1, in <module> django.core.handlers.base import basehandler file "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/handlers/base.py", line 3, in <module> django import http file "/base/data/home/apps/appid/3.347067228745038183/django/http/__init__.py", line 28, in <module> django.http.multipartparser import multipartparser file "/base/data/home/apps/appid/3.347067228745038183/django/http/multipartparser.py", line 14, in <module> django.core.files.uploadhandler import stopupload, skipfile, stopfuturehandlers
what wrong path? why happen? @ first path "/base/data/home/apps/app-id/3.347046818251769742/django/", "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/".
, how avoid error?
i have checked sys.path, uploaded new django several times, removed unnecessary files, lost :(
sys.path = ['/base/data/home/apps/appid/3.347077364008022180', '/base/data/home/apps/appid/3.347077364008022180/djangoappengine/lib', '/base/python_runtime/python_dist/lib/python25.zip', '/base/python_runtime/python_dist/lib/python2.5/', '/base/python_runtime/python_dist/lib/python2.5/plat-linux2', '/base/python_runtime/python_dist/lib/python2.5/lib-tk', '/base/python_runtime/python_dist/lib/python2.5/lib-dynload', '/base/python_runtime/python_lib/versions/1', '/base/data/home/apps/appid/3.347077364008022180/']
i guess db/__init__.py
from django.conf import settings
, , whatever reason, it's being given system's version of django rather own.
you try changing use relative import, from ..conf import settings
, should mean uses version in same package itself. works python 2.5, appengine uses.
Comments
Post a Comment