Init new draw application

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2023-03-22 12:26:27 +01:00
parent 19f41152ee
commit 7364d27b4b
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
11 changed files with 48 additions and 0 deletions

4
draw/__init__.py Normal file
View File

@ -0,0 +1,4 @@
# Copyright (C) 2023 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later
default_app_config = 'draw.apps.DrawConfig'

2
draw/admin.py Normal file
View File

@ -0,0 +1,2 @@
# Copyright (C) 2023 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later

10
draw/apps.py Normal file
View File

@ -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")

View File

2
draw/models.py Normal file
View File

@ -0,0 +1,2 @@
# Copyright (C) 2023 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later

View File

@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block content %}
Hello world!
{% endblock %}

2
draw/tests.py Normal file
View File

@ -0,0 +1,2 @@
# Copyright (C) 2023 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later

13
draw/urls.py Normal file
View File

@ -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()),
]

8
draw/views.py Normal file
View File

@ -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'

View File

@ -63,6 +63,7 @@ INSTALLED_APPS = [
'rest_framework.authtoken', 'rest_framework.authtoken',
'api', 'api',
'draw',
'registration', 'registration',
'participation', 'participation',
] ]

View File

@ -38,6 +38,7 @@ urlpatterns = [
path('search/', AdminSearchView.as_view(), name="haystack_search"), path('search/', AdminSearchView.as_view(), name="haystack_search"),
path('api/', include('api.urls')), path('api/', include('api.urls')),
path('draw/', include('draw.urls')),
path('participation/', include('participation.urls')), path('participation/', include('participation.urls')),
path('registration/', include('registration.urls')), path('registration/', include('registration.urls')),