from django.conf.urls.defaults import patterns, include, url from django.contrib.auth.decorators import login_required, permission_required from django.conf import settings from django.contrib import admin from views import UserProfileDetail, UserProfileUpdate # Registration/Login views #urlpatterns = patterns('artminster.core.apps.profile.views.login', # url(r"^signup/$", 'signup', name="account_signup"), # url(r"^signin/$", 'signin', name="signin"), # url(r"^logout/$", 'logout_view', name="logout"), #) urlpatterns = patterns('', url(r'^profile/edit/$', UserProfileUpdate.as_view(), {}, name = "edit_profile"), url(r'^profile/(?P<username>[\w\-\.\_\@\+]+)/$', UserProfileDetail.as_view(), {}, name = "profile"), #url(r'^signup/complete/$', 'register_complete', {}, name = "register_complete"), )
from allauth.account import views from django.conf.urls import patterns, url from views import UserProfileUpdate, UserProfileDetail, AlltoezSignupView urlpatterns = patterns( '', url(r"^password/change/$", views.password_change, name="account_change_password"), url(r'^profile/edit/$', UserProfileUpdate.as_view(), {"source": "profile_edit"}, name="edit_profile"), url(r"^profile/(?P<username>[\w-]+)/$", UserProfileDetail.as_view(), name="show_profile"), url(r'^profile/$', UserProfileDetail.as_view(), name="show_profile"), url(r'^signup/$', AlltoezSignupView.as_view(), {}, name="alltoez_account_signup"), url(r'^signup/step-2/$', UserProfileUpdate.as_view(), {"source": "step2"}, name="register_children"), )
from allauth.account import views from django.conf.urls import patterns, url from views import UserProfileUpdate, UserProfileDetail, AlltoezSignupView urlpatterns = patterns('', url(r"^password/change/$", views.password_change, name="account_change_password"), url(r'^profile/edit/$', UserProfileUpdate.as_view(), {"source":"profile_edit"}, name="edit_profile"), url(r"^profile/(?P<username>[\w-]+)/$", UserProfileDetail.as_view(), name="show_profile"), url(r'^profile/$', UserProfileDetail.as_view(), name="show_profile"), url(r'^signup/$', AlltoezSignupView.as_view(), {}, name="alltoez_account_signup"), url(r'^signup/step-2/$', UserProfileUpdate.as_view(), {"source":"step2"}, name="register_children"), )
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, template_name='myplaylists/form.html'), name='userprofile_edit'), url(r'^releases/(?P<pk>\d+)/reviews/create/$', 'myplaylists.views.review', name='review_create'), url(r'^releases/(?P<pk>\d+)/reviews/(?P<id>\d+)/delete/$', 'myplaylists.views.delete_review', name='review_delete'), )