Add a homepage
This commit is contained in:
parent
0716af3925
commit
615ff84032
3 changed files with 22 additions and 0 deletions
|
@ -2,7 +2,10 @@ from django.conf import settings
|
|||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
|
||||
from .views import HomeView
|
||||
|
||||
urlpatterns = [
|
||||
path("", HomeView.as_view(), name="kadenios"),
|
||||
path("admin/", admin.site.urls),
|
||||
path("elections/", include("elections.urls")),
|
||||
]
|
||||
|
|
5
kadenios/views.py
Normal file
5
kadenios/views.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
class HomeView(TemplateView):
|
||||
template_name = "kadenios.html"
|
14
shared/templates/kadenios.html
Normal file
14
shared/templates/kadenios.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% blocktrans %}
|
||||
<h1 class="title">Bienvenue sur Kadenios</h1>
|
||||
<hr>
|
||||
|
||||
La plateforme Kadenios permet de créer des élections.
|
||||
{% endblocktrans %}
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Reference in a new issue