blechreiz-website/blechreiz/urls.py

39 lines
1.3 KiB
Python
Raw Normal View History

2013-05-28 15:20:06 +02:00
from django.conf.urls import patterns, include, url
from django.contrib import admin
from musicians.views import MusicianList
2013-05-28 15:20:06 +02:00
from musicians.views import user_edit
import intern_area.views
2013-05-28 15:20:06 +02:00
import website.views
2013-06-18 22:49:01 +02:00
import eventplanner.views
2013-05-28 15:20:06 +02:00
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'blechreiz.views.home', name='home'),
# url(r'^blechreiz/', include('blechreiz.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
url(r'^musicians/$', MusicianList.as_view() ),
url(r'^musicians/(?P<username>[\w]+)$', user_edit ),
url(r'^admin_area/$', intern_area.views.login_site ),
url(r'^website/$', website.views.home_view),
url(r'^login/$', website.views.login_view),
url(r'^logout/$', website.views.logout_view),
2013-06-18 22:49:01 +02:00
url(r'^events/$', eventplanner.views.events_view),
url(r'^eventParticipation/$', eventplanner.views.event_participation_list ),
url(r'^eventParticipation/(\w+)/$', eventplanner.views.event_participation_detail ),
url(r'^eventParticipation/(\w+)/(\d+)$', eventplanner.views.event_participation_detail ),
2013-05-28 15:20:06 +02:00
)