예제 #1
0
from django.contrib import admin
from django.urls import path
from products.views import UserProductHistoryView
from .views import *
app_name4 = 'accounts'
urlpatterns = [
    path('', AccountHomeView.as_view(), name="home"),
    path('details/', UserDetailUpdateView.as_view(), name='user-update'),
    path('history/products/',
         UserProductHistoryView.as_view(),
         name='user-product-history'),
]
예제 #2
0
from django.conf import settings
from django.urls import path
from django.contrib.auth.views import LogoutView

from products.views import UserProductHistoryView

from .views import (
    UserLoginView,
    UserRegistrationView,
    GuestRegisterForm,
    AccountsHomeView,
    UserInfoUpdateView,
    AccountActivateView
)

urlpatterns = [
    path('login/', UserLoginView.as_view(), name='login'),
    path('register/', UserRegistrationView.as_view(), name='register'),
    path('register/guest/', GuestRegisterForm.as_view(), name='guest-register'),
    path('', AccountsHomeView.as_view(), name='user-account'),
    path('email/confirmed/<key>/', AccountActivateView.as_view(), name='email-activate'),
    path('email/resend-activation/', AccountActivateView.as_view(), name='resend-activation'),
    path('update/name/', UserInfoUpdateView.as_view(), name='update-user-name'),
    path('history/product/', UserProductHistoryView.as_view(), name='product-history'),
    path('logout/', LogoutView.as_view(), {'next_page': settings.LOGOUT_REDIRECT_URL}, name='logout'),
]
예제 #3
0
from django.urls import path
from django.urls import  re_path
from products.views import UserProductHistoryView


from .views import AccountHomeView,AccountEmailActivateView,UserDetailUpdateView

urlpatterns = [
    path('', AccountHomeView.as_view(), name="home"),
    path('details/', UserDetailUpdateView.as_view(), name="user-update"),
    path('history/products/', UserProductHistoryView.as_view(), name="user-product-history"),

    re_path(r'^email/confirm/(?P<key>[0-9A-Za-z]+)/$', AccountEmailActivateView.as_view(), name="email-activate"),
    re_path(r'^email/resend-activation/', AccountEmailActivateView.as_view(), name="resend-activation"),

]

예제 #4
0
from django.conf.urls import url
from .views import (AccountHomeView,AccountEmailActivationView,UserDetailUpdateView)
from products.views import UserProductHistoryView                            


urlpatterns = [
    url(r'^$',AccountHomeView.as_view(),name='home'),
    url(r'^details/$',UserDetailUpdateView.as_view(),name='user-update'),
    url(r'^history/products/$',UserProductHistoryView.as_view(),name='history-product'),
    
    url(r'^email/confirm/(?P<key>[0-9A-Za-z]+)/$', AccountEmailActivationView.as_view(), name='email-activate'),
    url(r'^email/resend-activation/$', AccountEmailActivationView.as_view(), name='resend-activation'),
]

예제 #5
0
from django.conf.urls import url

from products.views import UserProductHistoryView
from .views import (
        AccountHomeView, 
        AccountEmailActivateView,
        UserDetailUpdateView
        )

app_name = 'accounts'


urlpatterns = [
    url(r'^$', AccountHomeView.as_view(), name='home'),
    url(r'^details/$', UserDetailUpdateView.as_view(), name='user-update'),
    url(r'history/products/$', UserProductHistoryView.as_view(), name='user-product-history'),
    url(r'^email/confirm/(?P<key>[0-9A-Za-z]+)/$', 
            AccountEmailActivateView.as_view(), 
            name='email-activate'),
    url(r'^email/resend-activation/$', 
            AccountEmailActivateView.as_view(), 
            name='resend-activation'),
]

# account/email/confirm/asdfads/ -> activation view