31 lines
997 B
Python
31 lines
997 B
Python
from django.conf.urls import patterns, include, url
|
|
|
|
from django.contrib import admin
|
|
|
|
from musicians.views import MusicianList
|
|
from musicians.views import user_edit
|
|
|
|
import intern_area.views
|
|
|
|
import website.views
|
|
import messages.views
|
|
|
|
import eventplanner.urls
|
|
import settings
|
|
from django.conf.urls.static import static
|
|
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = patterns('',
|
|
url(r'^events/', include( eventplanner.urls.urlpatterns) ),
|
|
url(r'^admin/', include(admin.site.urls) ),
|
|
url(r'^admin/doc/', include('django.contrib.admindocs.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),
|
|
url(r'^messages/$', messages.views.message_view ),
|
|
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |