2016-04-08 00:35:59 +00:00
|
|
|
from django.conf.urls import patterns, url, include
|
2018-01-26 17:48:47 +00:00
|
|
|
from django.contrib.auth.decorators import login_required
|
2016-07-27 17:02:47 +00:00
|
|
|
from django.contrib.sitemaps.views import index, sitemap
|
2018-01-26 17:48:47 +00:00
|
|
|
from django.views.decorators.cache import never_cache
|
|
|
|
|
|
|
|
from ckeditor import views as ckedit_views
|
2013-06-03 16:31:39 +00:00
|
|
|
|
2016-07-26 14:34:45 +00:00
|
|
|
from regluit.admin import 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
|
|
|
|
2016-07-27 17:02:47 +00:00
|
|
|
urlpatterns = [
|
2013-12-16 20:16:34 +00:00
|
|
|
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')),
|
2013-12-16 20:16:34 +00:00
|
|
|
url(r'^selectable/', include('selectable.urls')),
|
2016-07-26 14:34:45 +00:00
|
|
|
url(r'^admin/', include(site.urls)),
|
2016-07-21 20:05:57 +00:00
|
|
|
url(r'^comments/', include('django_comments.urls')),
|
2016-04-08 00:35:59 +00:00
|
|
|
url(r"^notification/", include('notification.urls')),
|
2018-01-26 17:48:47 +00:00
|
|
|
url(r'^ckeditor/upload/', login_required(ckedit_views.upload), name='ckeditor_upload'),
|
|
|
|
url(r'^ckeditor/browse/', never_cache(login_required(ckedit_views.browse)), name='ckeditor_browse'),
|
2016-04-26 18:38:32 +00:00
|
|
|
# questionnaire urls
|
2017-06-20 15:08:14 +00:00
|
|
|
url(r'^survey/', include('questionnaire.urls')),
|
2016-07-27 17:02:47 +00:00
|
|
|
# sitemaps
|
2016-07-27 18:01:22 +00:00
|
|
|
url(r'^sitemap\.xml$', index, {'sitemaps': sitemaps},
|
|
|
|
name='django.contrib.sitemaps.views.sitemap'),
|
2016-07-27 17:02:47 +00:00
|
|
|
url(r'^sitemap-(?P<section>.+)\.xml$', sitemap, {'sitemaps': sitemaps}),
|
|
|
|
]
|