regluit/urls.py

34 lines
1.2 KiB
Python
Raw Normal View History

2016-04-08 00:35:59 +00:00
from django.conf.urls import patterns, url, include
2013-06-03 16:31:39 +00:00
from frontend.views import social_auth_reset_password
from regluit.admin import admin_site
2013-03-09 22:37:33 +00:00
from regluit.core.sitemaps import WorkSitemap, PublisherSitemap
sitemaps = {
'works': WorkSitemap,
'publishers': PublisherSitemap,
}
2011-11-18 15:41:10 +00:00
urlpatterns = patterns('',
url(r'^socialauth/reset_password/$', social_auth_reset_password, name="social_auth_reset_password"),
url(r'^api/', include('regluit.api.urls')),
url(r'', include('regluit.frontend.urls')),
url(r'', include('regluit.payment.urls')),
url(r'', include('regluit.libraryauth.urls')),
2014-10-20 20:57:46 +00:00
url(r'', include('regluit.marc.urls')),
2015-09-11 04:09:37 +00:00
url(r'^bisac/', include('regluit.bisac.urls')),
url(r'^selectable/', include('selectable.urls')),
url(r'^admin/', include(admin_site.urls)),
url(r'^comments/', include('django_comments.urls')),
2016-04-08 00:35:59 +00:00
url(r"^notification/", include('notification.urls')),
url(r'^ckeditor/', include('ckeditor.urls')),
2016-04-26 18:38:32 +00:00
# questionnaire urls
url(r'^survey/', include('regluit.questionnaire.urls')),
)
2013-03-09 22:37:33 +00:00
urlpatterns += patterns('django.contrib.sitemaps.views',
(r'^sitemap\.xml$', 'index', {'sitemaps': sitemaps}),
(r'^sitemap-(?P<section>.+)\.xml$', 'sitemap', {'sitemaps': sitemaps}),
)