Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
style: fix code code style
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterteriyaki committed Sep 30, 2023
1 parent a577c09 commit 5bb1483
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
11 changes: 7 additions & 4 deletions server/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
]
27 changes: 23 additions & 4 deletions templates/registration/register.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "base.html" %}

{% block title %}Register{% endblock title %}

{% block content %}
<div class="container mt-5">
Expand All @@ -12,17 +13,35 @@
{% csrf_token %}
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input type="text" class="form-control" id="name" name="name" required>
<input
type="text"
class="form-control"
id="name"
name="name"
required
>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" id="email" name="email" required>
<input
type="email"
class="form-control"
id="email"
name="email"
required
>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" id="password" name="password" required>
<input
type="password"
class="form-control"
id="password"
name="password"
required
>
</div>
<button type="submit" class="btn btn-primary">Register</button>
<button type="submit" class="btn btn-primary">Register</button>
</form>
</div>
</div>
Expand Down

0 comments on commit 5bb1483

Please sign in to comment.