urls.py 1016 Bytes
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
1
2
3
4
5
6
"""
Events URL Configuration
"""

from django.conf.urls import url

Luuk Scholten's avatar
Luuk Scholten committed
7
from events.feeds import EventFeed
8

Thom Wiggers's avatar
Thom Wiggers committed
9
10
from . import views

11
12
app_name = "events"

Thom Wiggers's avatar
Thom Wiggers committed
13
14
urlpatterns = [
    url(r'admin/(?P<event_id>\d+)/$', views.admin_details, name='admin-details'),
15
16
17
18
    url(r'admin/(?P<event_id>\d+)/registration/(?P<action>[-\w]+)/$',
        views.admin_change_registration, name='admin-registration'),
    url(r'admin/(?P<event_id>\d+)/registration/$',
        views.admin_change_registration, name='admin-registration'),
Thom Wiggers's avatar
Thom Wiggers committed
19
    url(r'admin/(?P<event_id>\d+)/export/$', views.export, name='export'),
20
21
    url(r'admin/(?P<event_id>\d+)/all_present/$', views.all_present,
        name='all_present'),
22
23
24
    url(r'^(?P<event_id>\d+)/$', views.event, name='event'),
    url(r'^(?P<event_id>\d+)/registration/(?P<action>[-\w]+)/$',
        views.registration, name='registration'),
Luuk Scholten's avatar
Luuk Scholten committed
25
    url(r'^$', views.index, name='index'),
Luuk Scholten's avatar
Luuk Scholten committed
26
27
    url(r'^ical/nl.ics', EventFeed(lang='nl'), name='ical-nl'),
    url(r'^ical/en.ics', EventFeed(), name='ical-en'),
Thom Wiggers's avatar
Thom Wiggers committed
28
]