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

Uploaded Python 3

File details

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

File metadata

  • Download URL: turtle_glide-2.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 51319d22e57bf88ed911452c0a848bcec90b8fb8484c82fda41e720bc3ac3c2e
MD5 54d79699aa0ae372109820c3c0f4956e
BLAKE2b-256 0d44f8fd5dbbc8239e667eb12c67a1b43fd19166e68204fee06915b1d4bf2735

See more details on using hashes here.

File details

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

File metadata

  • Download URL: turtle_glide-2.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11f3c84304d980e7a176a7a17b47ad16b3a301838cfc264a58df2ec89e917f1e
MD5 a90c512ef83aa5324956caea16aa69b7
BLAKE2b-256 75852e54eed01a01ec17f5ff61ece6665553808959021b33e6f83ca2dbdcf4db

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