mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 18:22:24 +00:00
Init new draw application
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
19f41152ee
commit
7364d27b4b
4
draw/__init__.py
Normal file
4
draw/__init__.py
Normal 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
2
draw/admin.py
Normal file
@ -0,0 +1,2 @@
|
||||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
10
draw/apps.py
Normal file
10
draw/apps.py
Normal 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")
|
0
draw/migrations/__init__.py
Normal file
0
draw/migrations/__init__.py
Normal file
2
draw/models.py
Normal file
2
draw/models.py
Normal file
@ -0,0 +1,2 @@
|
||||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
5
draw/templates/draw/index.html
Normal file
5
draw/templates/draw/index.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
Hello world!
|
||||
{% endblock %}
|
2
draw/tests.py
Normal file
2
draw/tests.py
Normal file
@ -0,0 +1,2 @@
|
||||
# Copyright (C) 2023 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
13
draw/urls.py
Normal file
13
draw/urls.py
Normal 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
8
draw/views.py
Normal 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'
|
@ -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
Block a user