-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
urls.py
executable file
·42 lines (38 loc) · 1.62 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
36
37
38
39
40
41
42
from django.conf.urls import url, include
from django.contrib.auth.decorators import login_required
from django.contrib.sitemaps.views import index, sitemap
from django.views.decorators.cache import never_cache
from ckeditor_uploader import views as ckedit_views
from regluit.admin import site
from regluit.core.sitemaps import WorkSitemap
from regluit.frontend.views import static_redirect_view
sitemaps = {
'works': WorkSitemap,
}
urlpatterns = [
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')),
url(r'', include('regluit.marc.urls')),
url(r'^bisac/', include('regluit.bisac.urls')),
url(r'^selectable/', include('selectable.urls')),
url(r'^admin/', site.urls),
url(r'^comments/', include('django_comments.urls')),
url(r"^notification/", include('notification.urls')),
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'
),
# questionnaire urls
url(r'^survey/', include('questionnaire.urls')),
# sitemaps
url(r'^sitemap\.xml$', index, {'sitemaps': sitemaps},
name='django.contrib.sitemaps.views.sitemap'),
url(r'^sitemap-(?P<section>.+)\.xml$', sitemap, {'sitemaps': sitemaps},
name='django.contrib.sitemaps.views.sitemap'),
url(r'^\.well-known/acme-challenge/(?P<file_name>[\w\-_]*)',
static_redirect_view, {'dir': '.well-known/acme-challenge'}),
]