forked from UKPythonAssociation/community.uk.python.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurls.py
More file actions
14 lines (12 loc) · 713 Bytes
/
Copy pathurls.py
File metadata and controls
14 lines (12 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^groups/$', views.user_groups, name='user-groups'),
url(r'^groups/(?P<key>[\w-]+)/$', views.user_group, name='user-group'),
url(r'events/$', views.future_events, name='future-events'),
url(r'^groups-with-no-events-scheduled/(?P<year>\d+)/(?P<month>\d+)/$', views.user_groups_with_no_events_scheduled, name='user-groups-with-no-events-scheduled'),
url(r'news/$', views.news, name='news'),
url(r'news/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>[\w-]+)/$', views.news_item, name='news-item'),
url(r'^(?P<key>.*?)/$', views.page_view, name='page'),
]