Skip to content

Conversation

@ulgens
Copy link
Member

@ulgens ulgens commented Nov 2, 2025

Small cleanup in settings/docker.py file. Details can be found in commit messages.

@ulgens ulgens requested a review from a team November 2, 2025 21:44
@ulgens ulgens self-assigned this Nov 2, 2025
@ulgens ulgens force-pushed the improve-docker-db-settings branch from fed35b0 to bad8373 Compare November 2, 2025 23:11
* We don't benefit from having separate definitions
* Pycharm was marking this code block with "replace dictionary creation" recommendation
These are provided by docker-compose.yml file, no default is needed.
@ulgens ulgens force-pushed the improve-docker-db-settings branch from bad8373 to a6f4764 Compare November 24, 2025 15:24
- TRAC_DATABASE=code.djangoproject
- TRAC_USER=code.djangoproject
# "code.djangoproject" value is hardcoded in trac.sql, no need to pass it via env vars
# - TRAC_USER=code.djangoproject
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is trac.sql the only place where code.djangoproject is used?

"HOST": os.environ.get("SQL_HOST"),
"PORT": os.environ.get("SQL_PORT"),
}
"ENGINE": os.environ["SQL_ENGINE"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better tha before :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants