Added navbar, login, signup, and forgot password
This commit is contained in:
3
website/users/admin.py
Normal file
3
website/users/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
5
website/users/apps.py
Normal file
5
website/users/apps.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class UsersConfig(AppConfig):
|
||||
name = 'users'
|
3
website/users/models.py
Normal file
3
website/users/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
website/users/tests.py
Normal file
3
website/users/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
8
website/users/urls.py
Normal file
8
website/users/urls.py
Normal 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
11
website/users/views.py
Normal 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'
|
||||
|
Reference in New Issue
Block a user