Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Path to django on google app engine -


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

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -