Added navbar, login, signup, and forgot password

This commit is contained in:
Yamozha
2021-02-09 01:06:19 +02:00
parent 3a3da23827
commit 6044270579
23 changed files with 256 additions and 36 deletions

3
website/users/admin.py Normal file
View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

5
website/users/apps.py Normal file
View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'

3
website/users/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
website/users/tests.py Normal file
View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

8
website/users/urls.py Normal file
View File

@ -0,0 +1,8 @@
from django.urls import path
from .views import SignUpView
urlpatterns = [
path('signup/', SignUpView.as_view(), name='signup'),
]

11
website/users/views.py Normal file
View File

@ -0,0 +1,11 @@
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
# need to make oauth facebook login
class SignUpView(generic.CreateView):
form_class = UserCreationForm
success_url = reverse_lazy('login')
template_name = 'registration/signup.html'