Browse Source

add the Django defaults for handler{404,500} to the URLs and fix the templates. fixes #83

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
2d82f51841
  1. 2
      pyweb/templates/404.html
  2. 2
      pyweb/templates/500.html
  3. 4
      pyweb/urls.py

2
pyweb/templates/404.html

@ -1,4 +1,4 @@
{% extends "index.htm" %}
{% extends "index.html" %}
{% block Content %}
I'm not sure what you are looking for, but it isn't here. :(
{% endblock %}

2
pyweb/templates/500.html

@ -1,4 +1,4 @@
{% extends "index.htm" %}
{% extends "index.html" %}
{% block Content %}
Hm, that didn't work. You might want to check the server logs to see why.
{% endblock %}

4
pyweb/urls.py

@ -22,6 +22,8 @@ admin.autodiscover()
from django.conf import settings
handler404 = 'django.views.defaults.page_not_found'
handler500 = 'django.views.defaults.server_error'
urlpatterns = patterns('',
(r'^/?$', 'mumble.views.redir' ),
@ -46,7 +48,7 @@ if "rosetta" in settings.INSTALLED_APPS:
)
# Development stuff
if settings.DEBUG:
if settings.DEBUG or True:
urlpatterns += patterns('',
(r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
'django.views.static.serve',

Loading…
Cancel
Save