This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
45 lines (34 loc) · 1.64 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
from django.conf.urls.defaults import patterns, url, include
from django.contrib import admin
from techism2.rss.feeds import UpcommingEventsRssFeed, UpcommingEventsAtomFeed
admin.autodiscover()
urlpatterns = patterns('',
# web
(r'^$', 'techism2.web.views.index'),
(r'^events/$', 'techism2.web.views.index'),
url(r'^events/(?P<event_id>\d+)/$', 'techism2.web.views.show', name='event-show'),
(r'^events/edit/(?P<event_id>\d+)/$', 'techism2.web.views.edit'),
(r'^events/create/$', 'techism2.web.views.create'),
(r'^events/archive/$', 'techism2.web.views.archive'),
(r'^events/tags/(?P<tag_name>.+)/$', 'techism2.web.views.tag'),
# static pages
(r'^impressum/$', 'techism2.web.views.static_impressum'),
(r'^about/$', 'techism2.web.views.static_about'),
# iCal
(r'^feed.ics$', 'techism2.ical.views.ical'),
# Atom
(r'^feeds/atom/upcomming_events$', UpcommingEventsAtomFeed()),
#RSS
(r'^feeds/rss/upcomming_events$', UpcommingEventsRssFeed()),
# admin
(r'^admin/', include(admin.site.urls)),
# login/logout
(r'^accounts/', include('django_openid_auth.urls')),
(r'^accounts/logout/$', 'techism2.web.views.logout'),
url(r'^accounts/google_login/$', 'gaeauth.views.login', name='google_login'),
url(r'^accounts/google_logout/$', 'gaeauth.views.logout', name='google_logout'),
url(r'^accounts/google_authenticate/$', 'gaeauth.views.authenticate', name='google_authenticate'),
# cron jobs
(r'^cron/update_archived_flag', 'techism2.cron.views.update_archived_flag'),
(r'^cron/update_tags_cache', 'techism2.cron.views.update_tags_cache'),
)