Create view

This commit is contained in:
Yohann D'ANELLO
2020-02-29 11:39:42 +01:00
parent 8e45f9df49
commit abee482257
14 changed files with 268 additions and 2 deletions

View File

@ -4,7 +4,7 @@ from django.contrib import admin
from django.utils.translation import gettext_lazy as _
from tbde.models import Ticket, Reward
from .models import Ticket, Reward
@admin.register(Ticket)

View File

@ -1 +1,9 @@
# Copyright (C) 2020 by BDE ENS Paris-Saclay
from django.urls import path
from .views import TombolaView
urlpatterns = [
path('', TombolaView.as_view()),
]

7
apps/tbde/views.py Normal file
View File

@ -0,0 +1,7 @@
# Copyright (C) 2020 by BDE ENS Paris-Saclay
from django.views.generic import TemplateView
class TombolaView(TemplateView):
template_name = "tombola.html"