forked from Inter-Actief/alexia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
46 lines (36 loc) · 1.51 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
43
44
45
46
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.views.generic import TemplateView
from apps.general import views as general
admin.autodiscover()
urlpatterns = patterns(
'',
# Root
url(r'^$', 'apps.scheduling.views.overview'),
# Apps
url(r'^billing/', include('apps.billing.urls')),
url(r'^juliana/', include('apps.juliana.urls')),
url(r'^organization/', include('apps.organization.urls')),
url(r'^profile/', include('apps.profile.urls')),
url(r'^scheduling/', include('apps.scheduling.urls')),
url(r'^ical$', 'apps.scheduling.views.ical'),
url(r'^ical/(?P<ical_id>\w+)$', 'apps.scheduling.views.personal_ical', name='ical'),
url(r'^api/', include('api.urls')),
# "Static" general
url(r'^about/$', general.about),
url(r'^help/$', general.help_view),
url(r'^login/$', general.login, name='login'),
url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': settings.LOGIN_URL}),
url(r'^register/$', general.register),
url(r'^change_current_organization/(?P<organization>[-\w]+)/$',
general.change_current_organization),
# Django Admin
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
# Internationalization
url(r'^i18n/', include('django.conf.urls.i18n')),
# Robots
url(r'^robots\.txt$',
TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
)