from django.conf.urls import patterns, include, url from django.contrib import admin from musicians.views import MusicianList, addressbook from musicians.views import user_edit import website.views import simpleforum.views import eventplanner.urls import settings from django.conf.urls.static import static admin.autodiscover() urlpatterns = patterns('', url(r'$^', website.views.home_view ), 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[\w]+)$', user_edit ), url(r'^addressbook/$', addressbook ), url(r'^login/$', website.views.login_view), url(r'^login/usernames$', website.views.userlistForAutocompletion), url(r'^logout/$', website.views.logout_view), url(r'^messages/$', simpleforum.views.message_view ), url(r'^location_field/', include('location_field.urls')), ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)