Skip to content

Conversation

@Didayolo
Copy link
Member

@Didayolo Didayolo commented Jul 29, 2025

Description

Make the variable DEBUG reliable, following the suggestion in #1953.

With this change, the variable DEBUG in base.py will effectively be a boolean:

  • set to True if we have DEBUG=True in the .env file
  • set to False if we have DEBUG=False or if the variable is absent from the .env file

Test

  • Warning: we may need to check how the variable from base.py is used. Maybe this string-way was taken into account somewhere.

  • Check that changing DEBUG to diverse values in .env lead to the expected behavior.

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@Didayolo Didayolo linked an issue Jul 29, 2025 that may be closed by this pull request
@Didayolo Didayolo merged commit c2dbf23 into develop Sep 23, 2025
1 check passed
@Didayolo Didayolo deleted the debug-variable-boolean branch September 23, 2025 12:28
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.

setting debug variable is unreliable

2 participants