Skip to main content

Librería para commandos para django

Project description

turtle_glide

Introducción

turtle_glide es una herramienta para crear archivos dentro de la carpeta templates o static de una app de Django.

Instalación del paquete

Instalación en tu proyecto Django

Instalar turtle_glide en tu proyecto Django:

pip install turtle_glide

Luego, agregar TurtleGlide como una app de Django en INSTALLED_APPS:

INSTALLED_APPS = [
    'turtle_glide'
]

Uso de turtle_glide

Parámetros obligatorios

Hay tres parámetros obligatorios para el uso del comando create_archive:

  • app_name: Nombre de la app
  • --template: para archivos en la carpeta templates
  • --static: para archivos en la carpeta static

Comando de ejemplo

python manage.py create_archive "app_name" --static "file_path"

create_archive

Crea multiples archivos en las carpetas static y templates de una app de Django.

python manage.py create_archive home --static css/app.css js/app.js --template layouts/main.html

uso de turtle_glide para desarrolladores

hay tres paramentros obligatorios para el uso del comando creeate_archive:

Paso 1: Instalar dependencias y crear entorno virtual

comandos:

instalacion de dependencias

./setup.sh

Paso 2: Activar entorno virtual

Activar el entorno virtual:

source venv/bin/activate

variables

  • app_name: Nombre de la app
  • --template: para archivos en la carpeta templates
  • --static: para archivos en la carpeta static
python manage.py create_archive "app_name" --static "file_path"

Listo para empezar

Ya estás listo para empezar a trabajar con TurtleGlide sin problemas.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turtle_glide-2.0.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turtle_glide-2.0.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file turtle_glide-2.0.0.tar.gz.

File metadata

  • Download URL: turtle_glide-2.0.0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for turtle_glide-2.0.0.tar.gz
Algorithm Hash digest
SHA256 46f5719a542fa44a7425b60484c21892477bc9b184779d4e8476c141051b156e
MD5 d8ce43c82d6f45a75a9d83884c3e29a4
BLAKE2b-256 3cd27dd3c195e004fec064968cdbb2da273528cb8d57b6e6630a1fa587e0ff4c

See more details on using hashes here.

File details

Details for the file turtle_glide-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: turtle_glide-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for turtle_glide-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41ea151011e28e069bf0270058668ae3c8b63d87fca0494ec3ab0bbf6c1248c2
MD5 ce661c24534b8472055b2f8bf659f356
BLAKE2b-256 75c4a7ae20c2aeb9c249444fee9f755a2f641e7f4157a52389e436f78109d445

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page