Browse Source

Preparando migração para django 3

unstable/3.0
Sesostris Vieira 4 years ago
parent
commit
e79a202403
  1. 8
      sigi/apps/contatos/apps.py
  2. 8
      sigi/apps/utils/templates/admin/multifilter.html
  3. 16
      sigi/asgi.py

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

8
sigi/apps/utils/templates/admin/multifilter.html

@ -0,0 +1,8 @@
{% load i18n %}
<h3>{% blocktranslate with filter_title=title %} By {{ filter_title }} {% endblocktranslate %}</h3>
<ul>
{% for choice in choices %}
<li{% if choice.selected %} class="selected"{% endif %}>
<a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}"><i class="small {% if choice.selected %}bi-check2-circle text-success{% else %}bi-circle{% endif %}"></i> {{ choice.display }}</a></li>
{% endfor %}
</ul>

16
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()
Loading…
Cancel
Save