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

Uploaded Python 3

File details

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

File metadata

  • Download URL: appligen-0.2.8.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.8.tar.gz
Algorithm Hash digest
SHA256 18a624588229bee8270dad7ecb2381e683d94e76c304bb50829c28207d8bbc6b
MD5 d17eff49cc2fbf379a9c143d76fc7eac
BLAKE2b-256 130cbe3198ae285abcc650ea4321a9dcf3b6450ef38530893353680dee23ba43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: appligen-0.2.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 eb2866db6ea897acc830c817d987fbede38e8a786e886f6fd3a597f5a3a1d02e
MD5 a405d70c819a30b16ee10f7ba95bfdba
BLAKE2b-256 ae73fc232824e313a889ee133dc3720871aedf1aeb2425a04ab4345cd2aa2cdf

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