2013-05-28 15:20:06 +02:00
|
|
|
from django.conf.urls import patterns, include, url
|
|
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
|
2013-06-15 21:50:12 +02:00
|
|
|
from musicians.views import MusicianList
|
2013-05-28 15:20:06 +02:00
|
|
|
from musicians.views import user_edit
|
|
|
|
|
2013-06-02 16:00:01 +02:00
|
|
|
import intern_area.views
|
2013-05-28 15:20:06 +02:00
|
|
|
|
2013-06-15 21:50:12 +02:00
|
|
|
import website.views
|
2013-09-15 12:29:56 +02:00
|
|
|
import messages.views
|
2013-06-15 21:50:12 +02:00
|
|
|
|
2013-09-13 21:04:59 +02:00
|
|
|
import eventplanner.urls
|
2013-06-30 11:01:12 +02:00
|
|
|
import settings
|
|
|
|
from django.conf.urls.static import static
|
2013-06-18 22:49:01 +02:00
|
|
|
|
2013-05-28 15:20:06 +02:00
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2013-09-13 21:04:59 +02:00
|
|
|
url(r'^events/', include( eventplanner.urls.urlpatterns) ),
|
2013-06-30 16:55:00 +02:00
|
|
|
url(r'^admin/', include(admin.site.urls) ),
|
|
|
|
url(r'^admin/doc/', include('django.contrib.admindocs.urls') ),
|
2013-05-28 15:20:06 +02:00
|
|
|
|
|
|
|
url(r'^musicians/$', MusicianList.as_view() ),
|
|
|
|
url(r'^musicians/(?P<username>[\w]+)$', user_edit ),
|
2013-06-02 16:00:01 +02:00
|
|
|
url(r'^admin_area/$', intern_area.views.login_site ),
|
2013-06-15 21:50:12 +02:00
|
|
|
url(r'^website/$', website.views.home_view),
|
|
|
|
url(r'^login/$', website.views.login_view),
|
|
|
|
url(r'^logout/$', website.views.logout_view),
|
2013-09-15 12:29:56 +02:00
|
|
|
url(r'^messages/$', messages.views.message_view ),
|
2013-06-30 11:01:12 +02:00
|
|
|
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|