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.1.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.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turtle_glide-2.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 72d31f8e22bc5ca093cd7ad8fb5737ca2491bfcda4aa12316be9a52cbe09c7e7
MD5 8ff7849528dad2dd6716441e63c1ef5c
BLAKE2b-256 c485c520d702ab032d177b14e6f544c46d80ffa611e8be61ea4a3784d22f4a25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: turtle_glide-2.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 258acca88db3f20238ee3906683e88d2720bfff8b549588d0ccfb2adcba6a0ff
MD5 4af02811d0334ea832a93150c5685907
BLAKE2b-256 a2acc71ffd2138274c5b7c9f152d92601a2c9c87f68f9563d5adc99a22695138

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