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.1.2.tar.gz (18.7 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.1.2-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turtle_glide-2.1.2.tar.gz
  • Upload date:
  • Size: 18.7 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.1.2.tar.gz
Algorithm Hash digest
SHA256 1ec46e29ab54299add23e195501b336c8d5fda5bd243d4a103de8dbaf3ce1346
MD5 d49c5983f5f4a3388e6d72a259e14315
BLAKE2b-256 1fdc8db37aced8bca6358131c5e5c4e5b7af23f8c0c0ef358f5d0acd7e8e1da3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: turtle_glide-2.1.2-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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 598440e2e1eb38c1dc0b916972eed0b57773992741861a27905b9d68add74427
MD5 b4ba8ea08ffd69430f848d0238fcbcf2
BLAKE2b-256 9a68981e4f378ccd65980c826cb8c47ef4dd5805748f23f7a4f351c816a0be11

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