Handle URLS for the PG10 docs. This is a hack for now - we need to properly handle '10' vs. '9.6' formatting before GA.

This commit is contained in:
Dave Page
2017-05-18 12:12:21 +01:00
parent fa07ed84b8
commit 0138a64cbe

View File

@ -39,9 +39,9 @@ urlpatterns = patterns('',
(r'^docs/$', 'pgweb.docs.views.root'),
(r'^docs/manuals/$', 'pgweb.docs.views.manuals'),
(r'^docs/manuals/archive/$', 'pgweb.docs.views.manualarchive'),
(r'^docs/(current|devel|\d\.\d)/(static|interactive)/(.*).html?$', 'pgweb.docs.views.docpage'),
(r'^docs/(current|devel|\d\.\d)/(static|interactive)/$', 'pgweb.docs.views.docsrootpage'),
(r'^docs/(current|devel|\d\.\d)/$', 'pgweb.docs.views.redirect_root'),
(r'^docs/(current|devel|[0-9]+\.\d)/(static|interactive)/(.*).html?$', 'pgweb.docs.views.docpage'),
(r'^docs/(current|devel|[0-9]+\.\d)/(static|interactive)/$', 'pgweb.docs.views.docsrootpage'),
(r'^docs/(current|devel|[0-9]+\.\d)/$', 'pgweb.docs.views.redirect_root'),
(r'^community/$', 'pgweb.core.views.community'),
(r'^community/contributors/$', 'pgweb.contributors.views.completelist'),