diff --git a/.env.dist b/.env.dist index 2f5030d0..20b36d23 100644 --- a/.env.dist +++ b/.env.dist @@ -8,9 +8,10 @@ MODERATE_CHAT= DB_USER= DB_PASS= DB_HOST= +DB_PORT= DB_NAME= -SECRET_KEY= +SECRET_KEY= API_KEY= QIWI_KEY= diff --git a/README.md b/README.md index 7c6768cc..f9566567 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/data/config.py b/data/config.py index 0d67c08a..637281a5 100644 --- a/data/config.py +++ b/data/config.py @@ -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"),