Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev): don't buffer Django output #1645

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

krishnans2006
Copy link
Member

Proposed changes

  • Set the PYTHONUNBUFFERED environment variable in entrypoint.sh

Brief description of rationale

Previously, print statements without flush=True would not be displayed until a server restart. This change unbuffers stdout and stderr from Django's development server to allow for easier debugging with print statements.

@krishnans2006 krishnans2006 self-assigned this Mar 27, 2024
@krishnans2006 krishnans2006 requested a review from a team as a code owner March 27, 2024 19:20
@coveralls
Copy link

Coverage Status

coverage: 79.792%. remained the same
when pulling 7f801a9 on krishnans2006:dev-fixes
into 1657c3b on tjcsl:dev.

@krishnans2006 krishnans2006 merged commit 1dabc29 into tjcsl:dev Mar 27, 2024
6 checks passed
@krishnans2006 krishnans2006 deleted the dev-fixes branch March 27, 2024 19:35
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.

3 participants