#encoding:utf-8 # Create your views here. from django.db.models import * from django.shortcuts import get_object_or_404, render, render_to_response from django.http import * from django.shortcuts import render_to_response from django.template.response import * from django.contrib.auth.decorators import * from django.contrib.auth import * from catalogos.models import * from principal.models import * from django.shortcuts import * from django.contrib.auth.models import User from catalogos.forms import * from django.db.models import * from datetime import * from django.contrib import messages from django.utils import formats from django.views.generic import ListView from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_exempt from django.db.models import Q from django.db.models import Count import json from django.core import serializers from django.contrib.auth.forms import UserCreationForm from django.template.response import TemplateResponse from django.utils.html import format_html, format_html_join from datetime import datetime import datetime