Skip to content

Commit

Permalink
Default to production settings
Browse files Browse the repository at this point in the history
turn off in docker-compose
  • Loading branch information
ipmb committed Feb 10, 2024
1 parent bd0e426 commit 292528e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ cog.out('\n'.join(mdown.split('\n')[1:]))
* description: Python logging level
* type: `Literal['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']`
* default: `INFO`
* **SECRET_KEY** _REQUIRED_
* **SECRET_KEY** _REQUIRED_
* description: A long random string you keep secret https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#secret-key
* type: `str`
* **ENVIRONMENT**
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
PY_REQUIREMENTS_FILE: requirements-dev.txt
environment:
- DEBUG=true
- DJANGO_ENV=development
- DATABASE_URL=postgres://postgres:postgres@db:5432/{{ project_name }}
- SECRET_KEY=not-secret
restart: on-failure
Expand Down
2 changes: 1 addition & 1 deletion project_name/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Config(GoodConf):
"https://github.com/jacobian/dj-database-url#url-schema",
)
DJANGO_ENV: Literal["development", "production"] = Field(
default="development",
default="production",
description="Toggle deployment settings for local development or production",
)
LOG_LEVEL: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] = Field(
Expand Down

0 comments on commit 292528e

Please sign in to comment.