On Wed, Jan 21, 2009 at 2:55 PM, bconnors <bob.conn...@wdc.usda.gov> wrote:
> > in followingWwriting your first Django app, part 2 > > when I typed in: http://127.0.0.1:8000/admin/ > > I got: > > [snip] File "C:\Python26\Lib\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 "C:\Python26\Lib\site-packages\django\template\loader.py", line > 80, in get_template > source, origin = find_template_source(template_name) > > File "C:\Python26\Lib\site-packages\django\template\loader.py", line > 73, in find_template_source > raise TemplateDoesNotExist, name > > TemplateDoesNotExist: 500.html > > > > any ideas? You have two problems. First, a server error (uncaught exception) happened when trying to generate a page in response to the url you entered. When that happens, and debug is off, the server responds with a generic "server error" page. For this it needs a 500.html template, but you apparently haven't created one, so that's your second problem. You will need a 500.html template eventually, but as you are just getting started it would be easier at this point if you just set DEBUG to True in settings.py. Then, when a server error happens, the server won't even try to use a 500.html to generate a generic "server error" page but rather will generate an informative debug page that will help in figuring out what is causing the first error. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---