Re: http 404 is replaced by http 500----------Django-1.0.2-final

2009-04-05 Thread Coonay
On Mar 15, 8:21 am, Fergus wrote: > On 14 Mar, 04:30, Malcolm Tredinnick wrote: > > > On Fri, 2009-03-13 at 21:27 -0700, Flank wrote: > > > in order to use django/conf/urls/defaults.py, handler404, i did 2 > > > things: > > > 1:change DEBUG = False in settings.py > > > 2:create a 404.html temp

Re: http 404 is replaced by http 500----------Django-1.0.2-final

2009-04-05 Thread Coonay
sory, there is a miss of the contrib.auth in my enviroment,which is deleted by me when i setup, now ,404 error can be return normally. thank you all On Mar 15, 8:21 am, Fergus wrote: > On 14 Mar, 04:30, Malcolm Tredinnick wrote: > > > On Fri, 2009-03-13 at 21:27 -0700, Flank wrote: > > > in or

Re: http 404 is replaced by http 500----------Django-1.0.2-final

2009-04-05 Thread Coonay
ext/ plain INFO 2009-04-05 10:44:55,687 mail_stub.py] Data length: 2080 ERROR2009-04-05 10:44:55,687 main.py] Exception in request: ImportError: No module named auth.models Traceback (most recent call last): File "D:\workspace\coonay\django\core\handlers\base.py", line 113,

wsgi.WSGIHandler:how to get a WebOb Request at first place

2009-04-06 Thread Coonay
i want to get a WebOb Request ASAP when the WSGIHandler is called,such as retrieve the SERVER_NAME and SERVER_PORT meta information from the request,my stupid idea is in the line 261 of wsgi.py that add following : server_name = request.META['SERVER_NAME'] if ( server_name is not

Re: wsgi.WSGIHandler:how to get a WebOb Request at first place

2009-04-06 Thread Coonay
On Apr 7, 12:54 pm, Graham Dumpleton wrote: > On Apr 7, 2:33 pm, Coonay wrote: > > > i want to get a WebOb Request ASAP when the WSGIHandler is called,such > > as retrieve the SERVER_NAME and SERVER_PORT meta information from the > > request,my stupid idea is in the

how to make serializers work with db.Model

2009-04-07 Thread Coonay
Background: code on google app engine using django framework, i persist data into google data store(which is not a dbms),there is an error of "django AttributeError:object has no attribute '_meta'" when reading the queryset and decoding the queryset using djago json serializers. As