Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Convert from settings.py to an .env file #32
It is a very powerful way to correctly configure an application, following the indications of "The Twelve-Factor App".
An example of a settings.py file converted to an
desarrollo@desarrollo:~/Proyectos/pipenv/blask$ cat .env # Minimal conf for Blask FLASK_APP=main.py # Name of the Template Folder. templateDir="templates" # Name of the post Folder postDir="posts" # default name of the template file. defaultLayout="template.html" # Default name of the static Folder staticDir="static" # Title of the blog tittle="Blask | A Simple Blog Engine Based on Flask"
All the environment variables that we want to define, can be included in the
A very popular custom is to create a file