From e79a20240327155ba614ee846d6b45dd98ebef73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Mon, 14 Jun 2021 22:55:59 -0300 Subject: [PATCH] =?UTF-8?q?Preparando=20migra=C3=A7=C3=A3o=20para=20django?= =?UTF-8?q?=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/contatos/apps.py | 8 ++++++++ sigi/apps/utils/templates/admin/multifilter.html | 8 ++++++++ sigi/asgi.py | 16 ++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 sigi/apps/contatos/apps.py create mode 100644 sigi/apps/utils/templates/admin/multifilter.html create mode 100644 sigi/asgi.py diff --git a/sigi/apps/contatos/apps.py b/sigi/apps/contatos/apps.py new file mode 100644 index 0000000..4d5ca94 --- /dev/null +++ b/sigi/apps/contatos/apps.py @@ -0,0 +1,8 @@ +from django.apps import AppConfig + + +class UtilsConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'sigi.apps.contatos' + label = 'contatos' + verbose_name = 'Contatos' diff --git a/sigi/apps/utils/templates/admin/multifilter.html b/sigi/apps/utils/templates/admin/multifilter.html new file mode 100644 index 0000000..90735c9 --- /dev/null +++ b/sigi/apps/utils/templates/admin/multifilter.html @@ -0,0 +1,8 @@ +{% load i18n %} +

{% blocktranslate with filter_title=title %} By {{ filter_title }} {% endblocktranslate %}

+ diff --git a/sigi/asgi.py b/sigi/asgi.py new file mode 100644 index 0000000..c01bc6e --- /dev/null +++ b/sigi/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for sigi project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sigi.settings') + +application = get_asgi_application()