Add a homepage

This commit is contained in:
Tom Hubrecht 2020-12-20 12:22:53 +01:00
parent 0716af3925
commit 615ff84032
3 changed files with 22 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
from django.views.generic import TemplateView
class HomeView(TemplateView):
template_name = "kadenios.html"

View 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 %}