Added authorization page

This commit is contained in:
Кулаков Юрий
2021-02-07 20:17:27 +03:00
parent 2919761b2f
commit f6193a837a
4 changed files with 42 additions and 1 deletions

View File

@@ -126,3 +126,6 @@ STATICFILES_DIRS = [
]
MEDIA_ROOT = BASE_DIR / 'media'
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'

View File

@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('django.contrib.auth.urls')),
]