-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
35 lines (32 loc) · 2.12 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
31
32
33
34
35
from django.conf.urls.defaults import *
from django.contrib.auth.views import password_reset, password_reset_done, password_reset_confirm
from django.views.generic import TemplateView
from django.views.generic.simple import redirect_to
from django_obit_desk2.views import deaths2, fh_index2, logout_view2, \
manage_death_notice2, manage_obituary2, print_obituary2, \
hard_copies_manifest2, death_notice_count, dn_newsletter_index, DNDetail
urlpatterns = list()
'''
Dirty hack: Uncomment following three lines for maintenance mode.
'''
# urlpatterns = patterns('',
# url(r'^.*$', TemplateView.as_view(template_name="maintenance.html"), name='maintenance'),
# )
urlpatterns += patterns('',
url(r'^(?P<pk>\d+)/$', DNDetail.as_view(), name='dn_detail'),
url(r'^deaths/(?P<death_notice_id>\d+)/$', manage_death_notice2, name='manage_death_notice2'),
url(r'^deaths/$', manage_death_notice2, name='add_death_notice2'),
url(r'^dn_newsletter/(?P<day_count>\d{1,2})/$', dn_newsletter_index, name='dn_newsletter_index'),
url(r'^obituaries/(?P<obituary_id>\d+)/$', manage_obituary2, name='manage_obituary2'),
url(r'^obituaries/(?P<obituary_id>\d+)/print/$', print_obituary2, name='print_obituary2'),
url(r'^obituaries/$', redirect_to, { 'url': 'https://obits.gatehousemedia.com/adportal/oreug-obits/index.html', 'permanent': True }, name='add_obituary2'),
url(r'^funeral-home/$', redirect_to, { 'url': 'https://obits.gatehousemedia.com/adportal/oreug-obits/index.html', 'permanent':True }, name='death_notice_index2'),
url(r'^logout/$', logout_view2, name='logout2'),
(r'^deaths/print/$', deaths2, {'model': 'Death_notice'}),
(r'^obits/print/$', deaths2, {'model': 'Obituary'}),
url(r'^password_reset/$', password_reset, name='password_reset2'),
url(r'^password_reset_done/$', password_reset_done, name='password_reset_done2'),
url(r'^password_reset/(?P<uidb36>[0-9A-Za-z]+)/(?P<token>[\d\w-]+)/$', password_reset_confirm, name='password_reset_confirm2'),
url(r'^hard-copies/$', hard_copies_manifest2, name='hard-copies2'),
url(r'^death-notices/$', death_notice_count, name='death-notice-count'),
)