24 lines
715 B
Python
24 lines
715 B
Python
from django.conf.urls import patterns, include, url
|
|
|
|
from django.contrib import admin
|
|
|
|
from musicians.views import MusicianList, MusicianUpdate
|
|
from musicians.views import user_edit
|
|
|
|
|
|
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 ),
|
|
) |