diff --git a/draw/__init__.py b/draw/__init__.py new file mode 100644 index 0000000..4eaed81 --- /dev/null +++ b/draw/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2023 by Animath +# SPDX-License-Identifier: GPL-3.0-or-later + +default_app_config = 'draw.apps.DrawConfig' diff --git a/draw/admin.py b/draw/admin.py new file mode 100644 index 0000000..c1c661c --- /dev/null +++ b/draw/admin.py @@ -0,0 +1,2 @@ +# Copyright (C) 2023 by Animath +# SPDX-License-Identifier: GPL-3.0-or-later diff --git a/draw/apps.py b/draw/apps.py new file mode 100644 index 0000000..d044e7e --- /dev/null +++ b/draw/apps.py @@ -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") diff --git a/draw/migrations/__init__.py b/draw/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/draw/models.py b/draw/models.py new file mode 100644 index 0000000..c1c661c --- /dev/null +++ b/draw/models.py @@ -0,0 +1,2 @@ +# Copyright (C) 2023 by Animath +# SPDX-License-Identifier: GPL-3.0-or-later diff --git a/draw/templates/draw/index.html b/draw/templates/draw/index.html new file mode 100644 index 0000000..db1b70a --- /dev/null +++ b/draw/templates/draw/index.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +Hello world! +{% endblock %} diff --git a/draw/tests.py b/draw/tests.py new file mode 100644 index 0000000..c1c661c --- /dev/null +++ b/draw/tests.py @@ -0,0 +1,2 @@ +# Copyright (C) 2023 by Animath +# SPDX-License-Identifier: GPL-3.0-or-later diff --git a/draw/urls.py b/draw/urls.py new file mode 100644 index 0000000..17075c6 --- /dev/null +++ b/draw/urls.py @@ -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()), +] diff --git a/draw/views.py b/draw/views.py new file mode 100644 index 0000000..175e1b1 --- /dev/null +++ b/draw/views.py @@ -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' diff --git a/tfjm/settings.py b/tfjm/settings.py index 3e62e25..01eb609 100644 --- a/tfjm/settings.py +++ b/tfjm/settings.py @@ -63,6 +63,7 @@ INSTALLED_APPS = [ 'rest_framework.authtoken', 'api', + 'draw', 'registration', 'participation', ] diff --git a/tfjm/urls.py b/tfjm/urls.py index 767b5ca..1e6f9d9 100644 --- a/tfjm/urls.py +++ b/tfjm/urls.py @@ -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')),