예제 #1
0
#-*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from views import ArtistList


urlpatterns = patterns('',
    url(r'^$', ArtistList.as_view(type_artist='mc'), name='mc_list'),
)
예제 #2
0
 # Create a playlist: /myplaylists/playlists/create/
 url(r'^playlists/create/$', PlaylistCreate.as_view(), name='playlist_create'),
 # Edit playlist details, ex: /myplaylists/playlists/edit/1
 url(r'^playlists/edit/(?P<pk>\d+)/$', UpdateView.as_view(
     model=Playlist,
     form_class=PlaylistForm,
     template_name='myplaylists/form.html'),
     name='playlist_edit'),
 # Delete playlist, ex: /myplaylists/playlists/delete/1
 url(r'^playlists/delete/(?P<pk>\d+)/$', PlaylistDelete.as_view(), name='delete_playlist'),
 # List all releases: myplaylists/releases/
 url(r'^releases/$', ReleaseList.as_view(), name='releases'),
 # Release details, ex: /myplaylists/releases/1
 url(r'^releases/(?P<pk>\d+)/$', ReleaseDetail.as_view(), name='release_detail'),
 # List all Artists: myplaylists/artists/
 url(r'^artists/$', ArtistList.as_view(), name='artists'),
 # Artist details, ex: /myplaylists/artists/1
 url(r'^artists/(?P<pk>\d+)/$', ArtistDetail.as_view(), name='artist_detail'),
 # List all Songs: myplaylists/songs/
 url(r'^songs/$', SongList.as_view(), name='songs'),
 # Song details, ex: /myplaylists/songs/1
 url(r'^songs/(?P<pk>\d+)/$', SongDetail.as_view(), name='song_detail'),
 url(r'^songs/search/$', search, name="song_search"),
 # User profile details, ex: /myplaylists/user/1/userprofile/
 url(r'^user/(?P<pk>\d+)/userprofile/$', UserProfileDetail.as_view(), name='userprofile_detail'),
 # Create a User profile: /myplaylists/user/1/userprofile/create/
 url(r'^user/(?P<pk>\d+)/userprofile/create/$', UserProfileCreate.as_view(), name='userprofile_create'),
 # Edit User profile details, ex: /myplaylists/user/1/userprofile/edit/1
 url(r'^user/(?P<pk>\d+)/userprofile/edit/(?P<id>\d+)/$', UpdateView.as_view(
     model=UserProfile,
     form_class=UserProfileForm,
예제 #3
0
#-*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from views import ArtistList


urlpatterns = patterns('',
    url(r'^$', ArtistList.as_view(), name='artist_list'),
)
예제 #4
0
#-*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from views import ArtistList


urlpatterns = patterns('',
    url(r'^$', ArtistList.as_view(type_artist='kids'), name='kids_list'),
)