forked from hacktoolkit/django-htk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
30 lines (26 loc) · 1.07 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from django.conf import settings
from django.conf.urls import include
from django.conf.urls import patterns
from django.conf.urls import url
import htk.views as views
urlpatterns = patterns(
'',
url(r'^health_check$', views.health_check, name='health_check'),
url(r'^robots\.txt$', views.robots, name='robots'),
url(r'^google(?P<code>[a-z0-9]+)\.html$', views.google_site_verification, name='google_site_verification'),
url(r'^(?P<code>.+)--\.html$', views.html_site_verification, name='html_site_verification'),
url(r'^BingSiteAuth\.xml$', views.bing_site_auth, name='bing_site_auth'),
url(r'^redir$', views.redir, name='redir'),
)
if 'htk.apps.maintenance_mode' in settings.INSTALLED_APPS:
urlpatterns += patterns(
'',
url(r'', include('htk.apps.maintenance_mode.urls')),
)
if settings.TEST or settings.ENV_DEV:
urlpatterns += patterns(
'',
url(r'^403$', views.error_view, name='error_403'),
url(r'^404$', views.error_view, name='error_404'),
url(r'^500$', views.error_view, name='error_500'),
)