From 5bb1483955de03292a63ab509b1926de46b39283 Mon Sep 17 00:00:00 2001 From: kyomi Date: Thu, 28 Sep 2023 20:40:54 -0300 Subject: [PATCH] style: fix code code style --- server/urls.py | 11 +++++++---- templates/registration/register.html | 27 +++++++++++++++++++++++---- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/server/urls.py b/server/urls.py index c73979c..37b1f98 100644 --- a/server/urls.py +++ b/server/urls.py @@ -2,13 +2,16 @@ from django.urls import include, path from django.views.generic import TemplateView - home_view = TemplateView.as_view(template_name="pages/home.html") -register_view = TemplateView.as_view(template_name="registration/register.html") +register_view = TemplateView.as_view( + template_name="registration/register.html" +) urlpatterns = [ + # Django views path("admin/", admin.site.urls), path("", include("django.contrib.auth.urls")), - path("", home_view, name="home"), - path("register/", register_view, name="register") + # Local views + path("", home_view, name="home"), + path("register/", register_view, name="register"), ] diff --git a/templates/registration/register.html b/templates/registration/register.html index 7e412a4..fdedbcc 100644 --- a/templates/registration/register.html +++ b/templates/registration/register.html @@ -1,5 +1,6 @@ {% extends "base.html" %} +{% block title %}Register{% endblock title %} {% block content %}
@@ -12,17 +13,35 @@ {% csrf_token %}
- +
- +
- +
- +