from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from django.contrib.auth import views as auth_views from authentication.views import SignUpView from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.views.generic import TemplateView urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'), url(r'^login/$', auth_views.LoginView.as_view(template_name='auth/login.html'), name='login'), url(r'^logout/$', auth_views.LogoutView.as_view(), name='logout'), url(r'^signup/$', SignUpView.as_view(), name='signup'), url(r'^accounts/', include('profiles.urls', namespace='accounts')), url(r'^admin/', admin.site.urls), url(r'^bookmarks/', include('bookmarks.urls.bookmarks', namespace='bookmarks')), url(r'^collections/', include('bookmarks.urls.collections', namespace='collections')), ] urlpatterns += staticfiles_urlpatterns() if settings.DEBUG: import debug_toolbar urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += [ url(r'^__debug__/', include(debug_toolbar.urls)),
PWDChangeDoneView, ) from django.urls import reverse_lazy from django.contrib.auth.views import ( PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView, PasswordChangeView, PasswordChangeDoneView, ) urlpatterns = [ path('', SignInView.as_view(), name='signin_view'), path('signup/', SignUpView.as_view(), name='signup_view'), path('signout/', SignOutView.as_view(), name='signout_view'), # path('password/reset/', PRView.as_view(), name='password_reset'), # path('password/reset/done/', PRDone.as_view() ,name='password_reset_done'), # path('password/reset/confirm/<uidb64>/<token>', PRConfirm.as_view() , name='password_reset_confirm'), # path('password/reset/complete/', PRComplete.as_view() , name='password_reset_complete'), path('password/reset/', PasswordResetView.as_view( email_template_name='authentication/password_reset_email.html', template_name='authentication/password_reset.html', ), name='password_reset'), path('password/reset/done/', PasswordResetDoneView.as_view( template_name='authentication/password_reset_done.html'),
from django.urls import path from SocialBackend import settings from django.conf.urls.static import static from authentication.views import SignUpView, Index, loginpage, StartPage urlpatterns = [ path("", StartPage, name="start"), path("homepage", Index, name="homepage"), path("signup/", SignUpView.as_view(), name="registerpage"), path("login/", loginpage, name="loginpage"), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.urls import path from rest_framework_simplejwt.views import TokenRefreshView from authentication.views import SignUpView, LogInView app_name = 'authentication' urlpatterns = [ path('sign_up/', SignUpView.as_view(), name='sign_up'), path('log_in/', LogInView.as_view(), name='log_in'), path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), ]
from django.urls import path from authentication.views import SignUpView, CustomLoginView, CustomLogoutView urlpatterns = [ path('sign-up/', SignUpView.as_view(), name="sign_up"), path('login/', CustomLoginView.as_view(), name="login"), path('logout/', CustomLogoutView.as_view(), name="logout"), ]