Beispiel #1
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
Beispiel #2
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'),
]
Beispiel #3
0
from django.urls import path
from products.views import UserProductHistoryView
from .views import (
    AccountHomeView,
    AccountEmailActivateView,
    UserDetailUpdateView

)

app_name = 'account'
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'),
    path('email/confirm/<key>/',
            AccountEmailActivateView.as_view(),
            name='email-activate'),
    path('email/resend-activation/',
            AccountEmailActivateView.as_view(),
            name='resend-activation'),
]
Beispiel #4
0
from django.urls import path, reverse_lazy
from .views import register_page, login_page, AccountHomeView, UserUpdateView
from django.contrib.auth.views import LogoutView
from django.contrib.auth import views as auth_views
from products.views import UserProductHistoryView
urlpatterns = [
    path('', AccountHomeView.as_view(), name='account'),
    path('details', UserUpdateView.as_view(), name='user-update'),
    path('register', register_page, name='register'),
    path('login', login_page, name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    #user history
    path('history/product', UserProductHistoryView.as_view(), name='history'),
    #password management
    path(r'password/change/',
         auth_views.PasswordChangeView.as_view(
             success_url=reverse_lazy('accounts:password_change_done')),
         name='password_change'),
    path(r'password/change/done/',
         auth_views.PasswordChangeDoneView.as_view(),
         name='password_change_done'),
    path(r'password/reset/',
         auth_views.PasswordResetView.as_view(
             success_url=reverse_lazy('accounts:password_reset_done')),
         name='password_reset'),
    path(r'password/reset/done/',
         auth_views.PasswordResetDoneView.as_view(),
         name='password_reset_done'),
    path(r'password/reset/\
        (?P<uidb64>[0-9A-Za-z_\-]+)/\
        (?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/',
Beispiel #5
0
from django.urls import re_path
from products.views  import UserProductHistoryView
from .views import (
                      AccountHomeView,
                    AccountEmailActivateView,
                    UserDetailUpdateView,
                    settings
                    )
from django.views.generic import  TemplateView
app_name='account'
urlpatterns = [
    re_path(r'^$', AccountHomeView.as_view(),name='home'),
    re_path(r'^history/products/$', UserProductHistoryView.as_view(),name='user-product-history'),
    re_path(r'^details/$', UserDetailUpdateView.as_view(),name='user_update'),
    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'),
 ]
# account/email/confirm/asghsghad/   --> activation view


Beispiel #6
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'),
]