/', serve, {
+ 'document_root': settings.MEDIA_ROOT,
+ }),
+ ]
\ No newline at end of file
diff --git a/sigi/wsgi.py b/sigi/wsgi.py
index 2bfdfd1..8ccf873 100644
--- a/sigi/wsgi.py
+++ b/sigi/wsgi.py
@@ -4,11 +4,13 @@ WSGI config for sigi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
-https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
+https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sigi.settings")
from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sigi.settings')
+
application = get_wsgi_application()
diff --git a/templates/404.html b/templates/404.html
deleted file mode 100644
index 9bf4293..0000000
--- a/templates/404.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n %}
-
-{% block title %}{% trans 'Page not found' %}{% endblock %}
-
-{% block content %}
-
-{% trans 'Page not found' %}
-
-{% trans "We're sorry, but the requested page could not be found." %}
-
-{% endblock %}
diff --git a/templates/500.html b/templates/500.html
deleted file mode 100644
index b30e431..0000000
--- a/templates/500.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n %}
-
-{% block breadcrumbs %}{% endblock %}
-
-{% block title %}{% trans 'Server error (500)' %}{% endblock %}
-
-{% block content %}
-{% trans 'Server Error (500) ' %}
-{% trans "There's been an error. It's been reported to the site administrators via e-mail and should be fixed shortly. Thanks for your patience." %}
-
-{% endblock %}
diff --git a/templates/503.html b/templates/503.html
deleted file mode 100644
index 824bad7..0000000
--- a/templates/503.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n %}
-
-{% block title %}{% trans 'Serviço em manutenção (503) | SIGI' %}{% endblock %}
-
-{% block branding %}{% endblock %}
-{% block menu-principal %}{% endblock %}
-{% block breadcrumbs %}{% endblock %}
-
-{% block content %}
-{% trans 'SIGI em manutenção' %}
-
-{% trans 'Esta página está atualmente em manutenção! Por favor, tente novamente mais tarde.' %}
-
-{% trans 'Obrigado pela paciência' %},
- {% trans 'Serviço de Pesquisa e Desenvolvimento Tecnológico (SPDT)' %}
-{% endblock %}
-
-{% block footer %}{% endblock %}
diff --git a/templates/admin/actions.html b/templates/admin/actions.html
deleted file mode 100644
index 7acf73e..0000000
--- a/templates/admin/actions.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% load i18n %}
-
diff --git a/templates/admin/app_index.html b/templates/admin/app_index.html
deleted file mode 100644
index 1bf8399..0000000
--- a/templates/admin/app_index.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{% extends "admin/index.html" %}
-{% load static from staticfiles %}
-
-{% block extrastyle %}
-
-
-
-{% endblock %}
-
-{% block breadcrumbs %}{% endblock %}
diff --git a/templates/admin/base.html b/templates/admin/base.html
index 9f31fcd..385feb2 100644
--- a/templates/admin/base.html
+++ b/templates/admin/base.html
@@ -1,188 +1,16 @@
-{% load admin_static bootstrapped_goodies_tags %}
-{% load i18n %}
-{% load menus %}
-
-
-
- {% block title %}{% endblock %}
-
-
-
- {% block extrastyle %}{% endblock %}
-
-
-
-
-
-
-
-
-
-
- {% block default_javascript %}
- {# We should be able to turn this off, to avoid conflict in integrated pages like petaho's dashboards #}
-
-
-
- {% endblock %}
-
- {% block extrahead %}{% endblock %}
-
- {% block blockbots %} {% endblock %}
-
-
-
-
-
-
-
-
- {% if not is_popup %}
-
- {% block container-top %}{% endblock %}
-
-
-
-
-
- {% block menu-principal %}
-
-
-
-
- {% show_menu "main_menu" %}
-
-
-
- {% endblock %}
-
- {% endif %}
-
-
-
-
- {% block content_title %}{% if title %}
{{ title }} {% endif %}{% endblock %}
-
- {% block navbar %}
-
- {% endblock navbar %}
-
- {% block messages %}
- {% if messages %}
-
-
- {% for message in messages %}
-
- {{ message }}
-
- {% endfor %}
-
-
- {% endif %}
- {% endblock messages %}
-
- {% block content %}{{ content }}{% endblock %}
- {% block sidebar %}{% endblock %}
-
-
-
- {% block footer %}{% endblock %}
-
-
-
-
-
+{% extends "admin/base.html" %}
+{% load django_bootstrap5 %}
+
+{% block extrastyle %}
+ {% bootstrap_css %}
+
+{% endblock %}
+
+{% block extrahead %}
+ {% bootstrap_javascript %}
+{% endblock %}
+
+{% block responsive %}
+ {{ block.super }}
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/admin/base_site.html b/templates/admin/base_site.html
deleted file mode 100644
index 6f61a15..0000000
--- a/templates/admin/base_site.html
+++ /dev/null
@@ -1,62 +0,0 @@
-{% extends "admin/base.html" %}
-{% load i18n %}{% load admin_static bootstrapped_goodies_tags %}
-{% load static from staticfiles %}
-
-{% block title %}{{ title }} | SIGI{% endblock %}
-
-{% block extrastyle %}
-
-
-{% endblock %}
-
-{% block extrahead %}
-
-{% endblock %}
-
-{% block container-top %}
-
-{% endblock %}
-
-{% block branding %}
- {% trans 'Sistema de Informações Gerenciais do Interlegis' %}
-{% endblock %}
-
-{% block nav-global %}
-{% if user.is_superuser %}
-
- {% trans 'Administração' %}
-
-
-{% endif %}
-{% endblock %}
-
-{% block footer %}
- {% if not is_popup %}
-
-
-
- {% endif %}
-{% endblock %}
-
diff --git a/templates/admin/carrinho.html b/templates/admin/carrinho.html
deleted file mode 100644
index 4eed251..0000000
--- a/templates/admin/carrinho.html
+++ /dev/null
@@ -1,98 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n %}
-{% block extrastyle %}
- {{ block.super }}
-
-{% endblock %}
-
-{% block title %}{% trans 'Carrinho | SIGI' %}{% endblock %}
-{% block content_title %}{% trans 'Carrinho' %} {% endblock %}
-
-{% block content %}
-
-
-
- {% block mensagem %}
-
- {%if carIsEmpty%}
- {% trans 'O carrinho está vazio' %}
- {%else%}
- {{paginas.paginator.count}} {% trans 'Itens no carrinho' %}.
- {%endif%}
-
- {% endblock %}
-
-
-
-
-
- {% block botoes %}{% endblock %}
-
-
-
-
-{% endblock %}
diff --git a/templates/admin/change_list.html b/templates/admin/change_list.html
deleted file mode 100644
index f1a7f8a..0000000
--- a/templates/admin/change_list.html
+++ /dev/null
@@ -1,121 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n admin_urls admin_static admin_list bootstrapped_goodies_tags %}
-
-{% block extrastyle %}
- {{ block.super }}
-
- {% if cl.formset %}
-
- {% endif %}
- {% if cl.formset or action_form %}
- {% url 'admin:jsi18n' as jsi18nurl %}
-
- {% endif %}
- {{ media.css }}
-{% endblock %}
-
-{% block extrahead %}
-{{ block.super }}
-{{ media.js }}
-{% if action_form %}{% if actions_on_top or actions_on_bottom %}
-
-{% endif %}{% endif %}
-{% endblock %}
-
-{% block bodyclass %}_change-list{% endblock %}
-
-{% block coltype %}flex{% endblock %}
-
-{% block object-tools %}
-
- {% if cl.has_filters %}
-
- {% endif %}
- {% block search %}{% search_form cl %}{% endblock %}
-{% endblock %}
-
-{% block content %}
-{% block extra_search %}{% endblock %}
-
-{% endblock %}
-
-
diff --git a/templates/admin/login.html b/templates/admin/login.html
deleted file mode 100644
index 1a3bcf0..0000000
--- a/templates/admin/login.html
+++ /dev/null
@@ -1,64 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n admin_static %}
-
-{% block extrastyle %}{{ block.super }} {% endblock %}
-
-{% block bodyclass %}login{% endblock %}
-
-{% block menu-principal %}{% endblock %}
-
-{% block content_title %}{% endblock %}
-
-{% block breadcrumbs %}{% endblock %}
-
-{% block container-top %}{% endblock %}
-
-{% block branding %}
-SIGI
-{% endblock %}
-
-{% block content %}
-{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
-
-{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}
-
-{% endif %}
-
-{% if form.non_field_errors or form.this_is_the_login_form.errors %}
-{% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}
-
- {{ error }}
-
-{% endfor %}
-{% endif %}
-
-
-{% endblock %}
-
-{% block footer %}{% endblock %}
diff --git a/templates/admin/search_form.html b/templates/admin/search_form.html
deleted file mode 100644
index 98937ef..0000000
--- a/templates/admin/search_form.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% load i18n admin_static %}
-{% if cl.search_fields %}
-
-
-
-{% endif %}
diff --git a/templates/admin/tabs_style.html b/templates/admin/tabs_style.html
deleted file mode 100644
index d9cecb7..0000000
--- a/templates/admin/tabs_style.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{% load static from staticfiles %}
-{% load i18n %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/templates/base_change_form.html b/templates/base_change_form.html
deleted file mode 100644
index 36548e4..0000000
--- a/templates/base_change_form.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends "admin/change_form.html" %}
-{% load i18n admin_urls %}
-
-{% block object-tools %}
-{% if change %}{% if not is_popup %}
-
-{% endif %}{% endif %}
-{% endblock %}
-
diff --git a/templates/base_mobile.html b/templates/base_mobile.html
deleted file mode 100644
index b834ff1..0000000
--- a/templates/base_mobile.html
+++ /dev/null
@@ -1,56 +0,0 @@
-{% load static from staticfiles %}
-{% load i18n %}
-
-
-
-
-
- {% block titulo %}
- {% trans 'SIGI - Diagnósticos' %}
- {% endblock titulo %}
- {% block media %}
-
-
-
-
-
-
- {% endblock media %}
-
-
-
-
-
- {% block cabecalho %}{% endblock cabecalho %}
-
-
- {% block corpo %}{% endblock corpo %}
-
-
-
-
-
-
-
-
{% trans 'Ops! Não foi possivel salvar os dados' %}.
-
-
- {% trans 'Algum erro ocorreu ao salvar os dados do diagnóstico' %}.
- {% trans 'Verifique a sua conectividade e/ou entre em contato com a equipe técnica o mais rápido possível' %}.
-
-
-
-
diff --git a/templates/base_report.html b/templates/base_report.html
deleted file mode 100644
index c5cc6e5..0000000
--- a/templates/base_report.html
+++ /dev/null
@@ -1,108 +0,0 @@
-{% load smart_if %}
-{% load static from staticfiles %}
-{% load i18n %}
-
-
-
-
- {% block title %}{% trans 'Relatório' %}{% endblock title %}
-
- {% block extra_head %}
- {% endblock %}
-
-
-
- {% block report %}
- {% endblock %}
-
-
-
diff --git a/templates/change_form_with_report_and_labels.html b/templates/change_form_with_report_and_labels.html
deleted file mode 100644
index 0c70968..0000000
--- a/templates/change_form_with_report_and_labels.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "base_change_form.html" %}
-{% load i18n %}
-
-{% block object-tools-items %}
-
-
- {% trans 'Relatório' %}
-
-
-
- {% trans 'Etiqueta' %}
-
-
-
- {% trans 'Etiqueta sem presidente' %}
-
- {{ block.super }}
-{% endblock %}
diff --git a/templates/change_list_with_cart.html b/templates/change_list_with_cart.html
deleted file mode 100644
index 14cdf1c..0000000
--- a/templates/change_list_with_cart.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{% extends "admin/change_list.html" %}
-{% load admin_list i18n reporting_tags %}
-
-{% block object-tools-items %}
-
-
- {% trans 'Ver Carrinho' %}
-
- {{ block.super }}
-{% endblock %}
diff --git a/templates/clear_all_filter.html b/templates/clear_all_filter.html
deleted file mode 100644
index ab4c57c..0000000
--- a/templates/clear_all_filter.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{% load i18n %}
-
- {% with choices|first as disabled %}
- {% trans 'Clear All Filters' %}
- {% endwith %}
diff --git a/templates/index.html b/templates/index.html
deleted file mode 100644
index 417dc60..0000000
--- a/templates/index.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n admin_static %}
-{% load static from staticfiles %}
-
-{% block title %}SIGI{% endblock %}
-
-{% block extrahead %}
- {{ block.super }}
-
-
-
-
-
-
-
-
-{% endblock %}
-
-{% block content_title %}
-{% trans 'Dashboard' %}
-
-{% endblock %}
-
-{% block extrastyle %}{{ block.super }} {% endblock %}
-
-{% block coltype %}colMS{% endblock %}
-
-{% block bodyclass %}dashboard{% endblock %}
-
-{% block breadcrumbs %}{% endblock %}
-
-{% block content %}
-
- {% include "snippets/modules/charts-convenios.html" %}
-
-{% endblock %}
\ No newline at end of file
diff --git a/templates/mobile/404.html b/templates/mobile/404.html
deleted file mode 100644
index 95e81a3..0000000
--- a/templates/mobile/404.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends "base_mobile.html" %}
-{% load i18n %}
-
-{% block cabecalho %}
- {% trans 'Ocorreu um erro' %}
-{% endblock cabecalho %}
-{% block corpo %}
- {% trans 'A página que está procurando não existe.' %}
- {% trans 'Verifique se o diagnóstico, categoria ou pergunta está cadastrado no sistema.' %}
- {% trans 'Voltar' %}
-{% endblock corpo %}
-
-{% block rodape %}
-
-{% endblock rodape %}
diff --git a/templates/snippets/modules/charts-convenios.html b/templates/snippets/modules/charts-convenios.html
deleted file mode 100644
index 2aba7d1..0000000
--- a/templates/snippets/modules/charts-convenios.html
+++ /dev/null
@@ -1,92 +0,0 @@
-{% load static from staticfiles %}
-{% load i18n %}
-
-
-
-
-
-
{% trans 'Sazonalidade da hospedagem de serviços' %}
-
-
-
-
-
-
-
-
-
-
{% trans 'Performance da gerência de carteiras' %}
-
-
-
-
-
-
-
-
-
-
{% trans 'Distribuição de Casas por Gerente' %}
-
-
-
-
-
-{% comment %}
-
-
-
-
{% trans 'Convênios assinados por projeto' %}
-
-
-
-
-
-
-
{% trans 'Processos de convênios por projeto' %}
-
-
-
-
-{% endcomment %}
-
diff --git a/templates/snippets/modules/resumo_convenios.html b/templates/snippets/modules/resumo_convenios.html
deleted file mode 100644
index 425f440..0000000
--- a/templates/snippets/modules/resumo_convenios.html
+++ /dev/null
@@ -1,69 +0,0 @@
-{% load i18n %}
-
-
-
{% trans 'Resumo de informações' %}
-
-
- {% trans 'Resumo por região' %}:
-
-
-
-
-
-
- {% for item in tabela_resumo_camara.cabecalho_topo %}
- {{item}}
- {% endfor %}
-
- {% for cabecalho,lista in tabela_resumo_camara.lista_zip %}
-
- {{cabecalho}}
- {% for item in lista %}
- {{item}}
- {% endfor %}
-
- {% endfor %}
-
-
-
-
\ No newline at end of file
diff --git a/templates/snippets/modules/resumo_seit.html b/templates/snippets/modules/resumo_seit.html
deleted file mode 100644
index 9d9154b..0000000
--- a/templates/snippets/modules/resumo_seit.html
+++ /dev/null
@@ -1,38 +0,0 @@
-{% load static from staticfiles %}
-{% load i18n %}
-
-
-
{% trans 'Serviços hospedados no Interlegis (SEIT)' %}
-
-
-
- {% for s in tabela_resumo_seit.titulos %}
- {{ s }}
- {% endfor %}
-
- {% for servico in tabela_resumo_seit.servicos %}
-
-
- {{ servico.nome }}
-
-
- {{ servico.total }}
- {{ servico.novos_mes_anterior }}
- {{ servico.novos_mes_atual }}
-
- {% endfor %}
-
-
-
-