| 1234567891011121314151617181920212223242526272829303132333435363738 |
- from django.urls import path, include
- from django.contrib.auth import views as auth_views
- from website.settings import APPLICATION_NAME
- #from . import views
- app_name = 'core'
- urlpatterns = [
- #path('', views.index, name='index'),
- #url(r'^login/$', auth_views.LoginView.as_view(extra_context= { 'all_user': User.objects.all() },redirect_authenticated_user=True),name='login')
- path(
- 'login/',
- auth_views.LoginView.as_view(
- template_name='core/login.html',
- extra_context = {
- 'title': 'Log in',
- 'icon': 'sign in alternate',
- 'description': 'Authenticate with ' + APPLICATION_NAME,
- 'keywords': 'authenticate, login, logon, signin, signon, log in, log on, sign in, sign on',
- },
- ),
- name='login',
- ),
- path(
- 'logout/',
- auth_views.LogoutView.as_view(
- # template_name='core/logout.html',
- # extra_context = {
- # 'title': 'Logout',
- # 'icon': 'sign out alternate',
- # 'description': 'End authenticated session with ' + APPLICATION_NAME,
- # 'keywords': 'authenticate, logout, logoff, signout, signoff, log out, log off, sign out, sign off',
- # },
- ),
- name='logout',
- ),
- ]
|