This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% block title %} Registro de Alumnos {% endblock title %} | |
{% block camino %} | |
<li class="{{reg_nino}}"><a href="{% if nino %}/editar_nino/{{nino.id}}{% else %}/registro_nino/{% endif %}"><i class="{% if nino %} icon-pencil {% else %}icon-notes-2{% endif %}"></i>Registro de Nino {% if abas %} de {{ nin.escuela.nombre }} {% endif %}</a></li> | |
{% endblock camino %} | |
{% block contenedor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DetailPropertyPDF(PDFTemplateResponseMixin, DetailView): | |
model = Property | |
template_name = 'reports/detail_property.html' | |
context_object_name = 'property' | |
URL_STATIC = "{}{}".format(APPS_DIR, STATIC_URL) | |
URL_MEDIA = "{}{}".format(APPS_DIR, MEDIA_URL) | |
MAIN_SERVICES = [ | |
{ | |
'category': 'airport', | |
'name': 'Aeropuerto Internacional de Guadalajara Miguel Hidalgo y Costilla', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "easy_pdf/base.html" %} | |
{% block layout_style %} | |
<style type="text/css"> | |
@page { | |
size: {{ pagesize|default:"A4" }}; | |
margin-left: 1cm; | |
margin-right: 1cm; | |
margin-top: 3cm; | |
margin-bottom: 2cm; | |
@frame header { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
from sqlalchemy import create_engine, Column, Integer, String, Float | |
from sqlalchemy.orm import sessionmaker, declarative_base | |
from sqlalchemy.exc import SQLAlchemyError | |
from sqlalchemy import inspect | |
# Estas variables globales deberian ser declaradas | |
# en un archivo .env o cualquier otro metodo por seguridad | |
# Ya que son datos sensibles. |