1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 07:18:25 +02:00

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