add login/logout urls and templates
This commit is contained in:
parent
28d061304f
commit
eb07ef249b
2 changed files with 20 additions and 1 deletions
|
|
@ -13,10 +13,20 @@ Including another URLconf
|
|||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.urls import path, include, re_path
|
||||
from django.contrib.auth import views as auth_views
|
||||
|
||||
urlpatterns = [
|
||||
re_path(
|
||||
'login/',
|
||||
auth_views.LoginView.as_view(),
|
||||
name='login'),
|
||||
re_path(
|
||||
'logout/',
|
||||
auth_views.LogoutView.as_view(),
|
||||
name='logout'),
|
||||
path('admin/', admin.site.urls),
|
||||
path('', include('jobs.urls'))
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue