-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use python-decouple for environment settings - add .env.example file to get started - remove default db user and password mentionings - update README documentation
- Loading branch information
Showing
8 changed files
with
74 additions
and
121 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
.idea/ | ||
*.iml | ||
__pycache__/ | ||
*.pyc | ||
env/ | ||
venv/ | ||
.env* | ||
|
||
cache/ | ||
web/static/ | ||
settings_local.py | ||
/web/static/ | ||
/web/media/ | ||
*credentials* | ||
|
||
.idea/ | ||
*.iml | ||
|
||
__pycache__/ | ||
*.pyc |
This file was deleted.
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ djangorestframework==3.12.4 | |
drf-yasg==1.20.0 | ||
Markdown==3.3.6 | ||
psycopg2-binary==2.9.2 | ||
python-decouple==3.5 |
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,25 @@ | ||
# -- django settings -- | ||
|
||
# This must never be True in production! | ||
https://docs.djangoproject.com/en/4.0/ref/settings/#debug | ||
DJANGO_DEBUG=False | ||
|
||
# https://docs.djangoproject.com/en/4.0/ref/settings/#secret-key | ||
DJANGO_SECRET_KEY=<put some long random garbage here> | ||
|
||
# for production this must contain your.host.name | ||
# https://docs.djangoproject.com/en/4.0/ref/settings/#allowed-hosts | ||
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 | ||
|
||
# -- database settings -- | ||
|
||
POSTGRES_DATABASE=parkapi2 | ||
POSTGRES_TEST_DATABASE=parkapi2-test | ||
|
||
# define database user and password | ||
POSTGRES_USER= | ||
POSTGRES_PASSWORD= | ||
|
||
# define these if the postgres does not run on localhost:5432 | ||
# POSTGRES_HOST= | ||
# POSTGRES_PORT= |
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