Skip to main content

Un package qui genere une application django.

Project description

envgen

envgen est un outil en ligne de commande simple pour générer des fichiers .env prêts à l’emploi pour des projets Django ou Flask.


🔧 Installation

pip install envgen

###  🔧 Utilisation
m
```bash

envgen <framework_choisi>

"Cela créera un fichier .env dans le dossier courant avec les variables d’environnement de base pour le framework choisi."

"C’est une bibliothèque qui permet à Python de lire le fichier .env."

```bash

pip install python-dotenv

'ensuite ajouter en haut du settings.py:'




import os
from dotenv import load_dotenv

# Charge le fichier .env à la racine du projet
load_dotenv()

# Utilisation des variables
SECRET_KEY = os.getenv("SECRET_KEY")
DEBUG = os.getenv("DEBUG") == "True"

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

appligen-0.2.7.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

appligen-0.2.7-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file appligen-0.2.7.tar.gz.

File metadata

  • Download URL: appligen-0.2.7.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for appligen-0.2.7.tar.gz
Algorithm Hash digest
SHA256 7a6fa5317f781790f9717479c1d668006d2b8318dc2930a8b2854c4f2548dbf0
MD5 d12e779ad5abe7156637b7f5efaf76f1
BLAKE2b-256 748cfbe36f5fc581e2f55785ba342b3338cfe0860108d784ad3982bfb31ac577

See more details on using hashes here.

File details

Details for the file appligen-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: appligen-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for appligen-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 832b67291e1eda3e935735dde75f803c3cf003758f1b424ca594f2f419fffcc2
MD5 74c63cfa3ffe7c032f033a2b7386df09
BLAKE2b-256 564fecf0291db3d845817cf0e7bddac722ce0d7d2c50961fc0fca1912fce4867

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