Added navbar, login, signup, and forgot password
This commit is contained in:
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