-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inserida lib python decouple para leitura de configurações de instância
close #19
- Loading branch information
Showing
7 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
# Pasta de configurações | ||
# Pasta de configurações | ||
|
||
Para gestão das configurações o projeto usa um simples arquivo .env | ||
|
||
Para você não começar do zero, nessa pasta existe o arquivo env-sample com todas configurações definidas | ||
|
||
Basta então copiar este arquivo para a raiz do projeto: | ||
|
||
```bash | ||
cp env-sample ../.env | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BACKEND_SECRET_KEY=escolha-um-segredo-como-valor-para-o-django | ||
# SECURITY WARNING: don't run with debug turned on in production! | ||
BACKEND_DEBUG=False | ||
# Configure os dominios ou ips que sua aplicação vai rodar, separadas por vírgula | ||
BACKEND_ALLOWED_HOSTS=localhost,127.0.0.1 | ||
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres |