feat: добавить auth функционал, URL и Docker конфигурацию
Some checks failed
Build and Push Docker Image / build (push) Failing after 12s
Some checks failed
Build and Push Docker Image / build (push) Failing after 12s
- Добавлены views, URL и страницы для входа, регистрации, профиля - Обновлён основной маршрут users/urls.py - Перенаправлен маршрут catalog вместо items - Обновлена структура header с добавлением ссылки на главную - Создан Dockerfile и workflow для сборки и доставки образов
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
from django.urls import path
|
||||
|
||||
from users import views
|
||||
|
||||
urlpatterns = []
|
||||
urlpatterns = [
|
||||
path('login/', views.login, name='login'),
|
||||
path('register/', views.register, name='register'),
|
||||
path('profile/', views.profile, name='profile')
|
||||
]
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
|
||||
# Create your views here.
|
||||
def login(request):
|
||||
return render(request, 'users/login.html', context={})
|
||||
|
||||
|
||||
def register(request):
|
||||
return render(request, 'users/register.html', context={})
|
||||
|
||||
|
||||
def profile(request):
|
||||
return render(request, 'users/profile.html', context={})
|
||||
|
||||
Reference in New Issue
Block a user