Hi Steve,
    I do have the DEBUG setting on False.  The reason is that when I
set DEBUG to True, I get the following message:


Page not found (404)
Request Method:         GET
Request URL:    http://127.0.0.1:8000/

Using the URLconf defined in mysite.urls, Django tried these URL
patterns, in this order:

   1. ^admin/

The current URL, , didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django
settings file. Change that to False, and Django will display a
standard 404 page.


And thanks for your response!

Regards
Meenakshi


On Aug 5, 3:50 pm, Steve Holden <holden...@gmail.com> wrote:
> On 8/5/2010 6:27 PM, meenakshi wrote:
>
>
>
> >   I am a beginner working through the Django tutorial.  When I try to
> > run the development server athttp://127.0.0.1:8000/,  I get a
> > TemplateDoesNotExist: 500.html error.
> >    I have no problems linking tohttp://127.0.0.1:8000/admin,
> > however.  Whats going on?
>
> > Here is what I get when I try to run the server :
>
> > ^CMacintosh:mysite mroy$ python2.6 manage.py runserver
> > Validating models...
> > 0 errors found
>
> > Django version 1.1.1, using settings 'mysite.settings'
> > Development server is running athttp://127.0.0.1:8000/
> > Quit the server with CONTROL-C.
>
> > Traceback (most recent call last):
>
> >   File "/sw/lib/python2.6/site-packages/django/core/servers/
> > basehttp.py", line 279, in run
> >     self.result = application(self.environ, self.start_response)
>
> >   File "/sw/lib/python2.6/site-packages/django/core/servers/
> > basehttp.py", line 651, in __call__
> >     return self.application(environ, start_response)
>
> >   File "/sw/lib/python2.6/site-packages/django/core/handlers/wsgi.py",
> > line 241, in __call__
> >     response = self.get_response(request)
>
> >   File "/sw/lib/python2.6/site-packages/django/core/handlers/base.py",
> > line 122, in get_response
> >     return self.handle_uncaught_exception(request, resolver,
> > sys.exc_info())
>
> >   File "/sw/lib/python2.6/site-packages/django/core/handlers/base.py",
> > line 166, in handle_uncaught_exception
> >     return callback(request, **param_dict)
>
> >   File "/sw/lib/python2.6/site-packages/django/views/defaults.py",
> > line 23, in server_error
> >     t = loader.get_template(template_name) # You need to create a
> > 500.html template.
>
> >   File "/sw/lib/python2.6/site-packages/django/template/loader.py",
> > line 81, in get_template
> >     source, origin = find_template_source(template_name)
>
> >   File "/sw/lib/python2.6/site-packages/django/template/loader.py",
> > line 74, in find_template_source
> >     raise TemplateDoesNotExist, name
>
> > TemplateDoesNotExist: 500.html
>
> > I am using python2.6 and Django version 1.1.  What's wrong?  I
> > apologize for this newbie question.  Would really appreciate some
> > help.
>
> Do you have the DEBUG setting at False? I thought 500 errors would give
> a traceback rather than print a 500 response when DEBUG was true.
>
> You appear to be getting the error because some part of your logic is
> raising an uncaught exception. In order to return the necessary HTTP
> response (with status code 500) Django looks for a specific template.
> Defining it will be useful for production, but for testing you want to
> see the traceback from the error so you know what is going wrong in your
> logic.
>
> regards
>  Steve
> --
> I'm no expert.
> "ex" == "has-been"; "spurt" == "drip under pressure"
> "expert" == "has-been drip under pressure".

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to