Skip to content

Commit

Permalink
added DB_PORT to .env.dist (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhaldi authored Jan 9, 2024
1 parent dd94d39 commit 7e4c42a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ MODERATE_CHAT=
DB_USER=
DB_PASS=
DB_HOST=
DB_PORT=
DB_NAME=
SECRET_KEY=

SECRET_KEY=
API_KEY=

QIWI_KEY=
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ After that, you need to fill it with data.
| DB_USER | str | True | username of the database owner |
| DB_PASS | str | True | password from the database |
| DB_HOST | str | True | IP address of the database |
| DB_PORT | str | True | the database port. Usually the db running on port `5432` |
| DB_NAME | str | True | database name |
| PORT | str | True | the database port. Usually the db running on port `5432` |
| SECRET_KEY | str | True | secret key for django |
| API_KEY | str | True | yandex api key for yandex map |
| QIWI_KEY | str | True | qiwi api key for receiving payments |
Expand Down
2 changes: 1 addition & 1 deletion data/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def load_config() -> Config:
password=env.str("DB_PASS"),
host=env.str("DB_HOST"),
database=env.str("DB_NAME"),
port=env.str("PORT"),
port=env.str("DB_PORT"),
),
misc=Miscellaneous(
secret_key=env.str("SECRET_KEY"),
Expand Down

0 comments on commit 7e4c42a

Please sign in to comment.