Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if a non-existing page is accessed #1

Open
sema opened this issue Nov 9, 2012 · 0 comments
Open

Error if a non-existing page is accessed #1

sema opened this issue Nov 9, 2012 · 0 comments
Labels

Comments

@sema
Copy link
Member

sema commented Nov 9, 2012

If you access a non-existing page you get a 500 error page and not the expected 404 page.

Traceback (most recent call last):

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/core/handlers/base.py", line 127, in get_response
return callback(request, **param_dict)

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/views/defaults.py", line 14, in page_not_found
return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path})))

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/template/init.py", line 173, in render
return self._render(context)

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/template/init.py", line 167, in _render
return self.nodelist.render(context)

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/template/init.py", line 796, in render
bits.append(self.render_node(node, context))

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/template/init.py", line 809, in render_node
return node.render(context)

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/template/loader_tags.py", line 103, in render
compiled_parent = self.get_parent(context)

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/template/loader_tags.py", line 100, in get_parent
return get_template(parent)

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/template/loader.py", line 157, in get_template
template, origin = find_template(template_name)

File "/home/vukitadk/.virtualenvs/galleri-production/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/template/loader.py", line 138, in find_template
raise TemplateDoesNotExist(name)

TemplateDoesNotExist: site.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant