Skip to main content

dj-DoCodeCarga (Django-App)

N|Solid

Build Status

DoCodeCarga es una aplicacion para generar un layout en Excel en base a un modelo asi mismo permite cargar dicho layout con informacion masivamente.

Tecnologia

DoCodeDB se implementa con las siguientes librerias previamente instaladas:

  • Django - Python base framework (v2.2)
  • openpyxl - Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm files.

Instalacion

Instalar por medio de pip

$ pip install dj-DoCodeCarga

Estructura de la App

La aplicacion tiene una estructura comun de una app Django

DoCodeCarga/
	procesos
	static
	templates
	templatetags
  admin.py
	apps.py
  models.py
	urls.py
	views.py

Configuracion:

Agregar la App a "INSTALLED_APPS" dentro de los settings.py

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'DoCodeCarga',
]

Uso:

views.py

  • Se incluye ambos procesos Proceso para descargar layout y Proceso para Leer Excel
from DoCodeCarga.procesos import layout

# Proceso para descargar Layout
if layout.verificar(request):
        return layout.descargar(Modelo)

# Metodo para cargar Excel
result = layout.cargar(request,model)
context = {
  'titulo' : titulo,
}
return render(request, 'template.html', context)

Configuracion de Template

  • Se debe incluir el template layoutCarga.html para habilitar los botones
{% include 'layoutCarga.html' %}

Actualizacion v1.0.4

  • Se actualiza para poder utlizar la funcion choices dentro de los modelos
  • Se implementa el template layoutCarga.html

Licencia


MIT License

Copyright (c) 2020 DoCode

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for dj-DoCodeCarga 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dj-DoCodeCarga 1.0.4
File Size Uploaded Provenance
dj-DoCodeCarga-1.0.4.tar.gz 9.5 kB Without provenance Details

Release files / dj-DoCodeCarga-1.0.4.tar.gz

Download URL dj-DoCodeCarga-1.0.4.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6226a634a8547bea8824139dde642f01a10916e023474153f2354bbb5d869405
BLAKE2b-256 checksum
How to use checksums
6aea47449a14f835e9123e78a72b92831901a4fa79da84dddcaf006518050c66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.2

Security for dj-DoCodeCarga 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page