fix the links, but we need to keep the old references for links coming
in from other sites.
def signup(request):
return HttpResponseRedirect("/account/signup/")
+def html_extension(request, prior_to_html):
+ return HttpResponseRedirect("/%s" % prior_to_html)
'document_root': '../media',
}),
+ # If we're getting an attempt for something ending in HTML, just get rid of it
+ (r'^(.*)\.html$', 'pgweb.legacyurl.views.html_extension'),
+
# Fallback for static pages, must be at the bottom
(r'^(.*)/$', 'pgweb.core.views.fallback'),
)