Skip to content

Enable Django DEBUG in fewer scenarios #251

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

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Jan 17, 2025

Previously DEBUG would be enabled in any environment that wasn't a Heroku app, including an OCI image built using the Python CNB. Instead we would rather such an image act closer to how the app will on Heroku.

(We also want as few Heroku-specific conditionals as possible.)

GUS-W-17623845.

Previously `DEBUG` would be enabled in any environment
that wasn't a Heroku app, including an OCI image built
using the Python CNB. Instead we would rather such an
image act closer to how the app will on Heroku.

(We also want as few Heroku-specific conditionals as possible.)
@edmorley edmorley self-assigned this Jan 17, 2025
@edmorley edmorley requested a review from a team as a code owner January 17, 2025 15:15
@edmorley edmorley removed the request for review from a team January 17, 2025 15:16
@heroku heroku bot temporarily deployed to getting-star-edmorley-a-zt0ede January 17, 2025 15:16 Inactive
@edmorley edmorley merged commit 42fd0c5 into main Jan 17, 2025
1 check passed
@edmorley edmorley deleted the edmorley/adjust-debug branch January 17, 2025 15:18
edmorley added a commit to heroku/cnb-builder-images that referenced this pull request Mar 21, 2025
Since this env var was added in #385 primarily for the Python
Getting Started Guide, but that guide:
- No longer requires that the env var be set in order to run in
  production mode, as of:
  heroku/python-getting-started#251
- Now redirects to HTTPS if `DYNO` is set (which is not what we
  want for these tests, since there is no TLS cert configured), as of:
  heroku/python-getting-started#253

Also, we're about to add Direwolf tests for CNBs/Fir, which will
test the guides in a true Heroku-like setting, so it makes more
sense for these smoke tests to more accurately test the local
`pack build` workflow instead - rather than a hybrid of both.

Lastly, I've added `-L` to the curl usages (which makes it follow
redirects), so that any issues with redirects are caught in CI.
(Such as the Python Getting Started Guide HTTP 301 redirecting
to an HTTPS URL with no cert, when the `DYNO` env var was
set.)

GUS-W-18093965.
edmorley added a commit to heroku/cnb-builder-images that referenced this pull request Mar 21, 2025
Since this env var was added in #385 primarily for the Python
Getting Started Guide, but that guide:
- No longer requires that the env var be set in order to run in
  production mode, as of:
  heroku/python-getting-started#251
- Now redirects to HTTPS if `DYNO` is set (which is not what we
  want for these tests, since there is no TLS cert configured), as of:
  heroku/python-getting-started#253

Also, we're about to add Direwolf tests for CNBs/Fir, which will
test the guides in a true Heroku-like setting, so it makes more
sense for these smoke tests to more accurately test the local
`pack build` workflow instead - rather than a hybrid of both.

Lastly, I've added `-L` to the curl usages (which makes it follow
redirects), so that any issues with redirects are caught in CI.
(Such as the Python Getting Started Guide HTTP 301 redirecting
to an HTTPS URL with no cert, when the `DYNO` env var was
set.)

GUS-W-18093965.
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.

1 participant