示例#1
0
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"),
)
示例#2
0
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"),
)
示例#3
0
文件: urls.py 项目: hqp6684/hnet
from django.conf.urls import patterns, url

from users import views
from views import UserProfileView, UserProfileUpdate

urlpatterns = patterns(
    '',
    url(r'^$', views.index, name='index'),
    #url(r'^(?P<user_id>\d+)/$',views.view_profile, name='view_profile'),
    url(r'^(?P<pk>\d+)/$',
        UserProfileView.as_view(),
        name='userprofile-detail'),
    #url(r'^profile/$', views.edit_profile , name='userprofile-edit')
    url(r'^(?P<pk>\d+)/update',
        UserProfileUpdate.as_view(),
        name='userprofile-update'),
)
示例#4
0
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"),
)