Init new draw application
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
19f41152ee
commit
7364d27b4b
|
@ -0,0 +1,4 @@
|
|||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
default_app_config = 'draw.apps.DrawConfig'
|
|
@ -0,0 +1,2 @@
|
|||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
@ -0,0 +1,10 @@
|
|||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from django.apps import AppConfig
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class DrawConfig(AppConfig):
|
||||
name = 'draw'
|
||||
verbose_name = _("Draw")
|
|
@ -0,0 +1,2 @@
|
|||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
@ -0,0 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
Hello world!
|
||||
{% endblock %}
|
|
@ -0,0 +1,2 @@
|
|||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
@ -0,0 +1,13 @@
|
|||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from django.urls import path
|
||||
|
||||
from .views import DisplayView
|
||||
|
||||
|
||||
app_name = "draw"
|
||||
|
||||
urlpatterns = [
|
||||
path('', DisplayView.as_view()),
|
||||
]
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
class DisplayView(TemplateView):
|
||||
template_name = 'draw/index.html'
|
|
@ -63,6 +63,7 @@ INSTALLED_APPS = [
|
|||
'rest_framework.authtoken',
|
||||
|
||||
'api',
|
||||
'draw',
|
||||
'registration',
|
||||
'participation',
|
||||
]
|
||||
|
|
|
@ -38,6 +38,7 @@ urlpatterns = [
|
|||
path('search/', AdminSearchView.as_view(), name="haystack_search"),
|
||||
|
||||
path('api/', include('api.urls')),
|
||||
path('draw/', include('draw.urls')),
|
||||
path('participation/', include('participation.urls')),
|
||||
path('registration/', include('registration.urls')),
|
||||
|
||||
|
|
Loading…
Reference in New Issue