automated push from the terminal
This commit is contained in:
13
player/urls.py
Normal file
13
player/urls.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import RegisterView
|
||||
|
||||
from django.views.generic.base import TemplateView
|
||||
|
||||
urlpatterns = [
|
||||
|
||||
path("register", RegisterView.as_view(), name="register"),
|
||||
|
||||
path("home", TemplateView.as_view(template_name="home.html"), name="home"),
|
||||
|
||||
]
|
||||
13
player/views.py
Normal file
13
player/views.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
|
||||
from django.urls import reverse_lazy
|
||||
|
||||
from django.views import generic
|
||||
|
||||
class RegisterView(generic.CreateView):
|
||||
|
||||
form_class = UserCreationForm
|
||||
|
||||
success_url = reverse_lazy("login")
|
||||
|
||||
template_name = "registration/register.html"
|
||||
Reference in New Issue
Block a user