-
Notifications
You must be signed in to change notification settings - Fork 24
Add Django debug toolbar for local development #4339
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4339 +/- ##
==========================================
- Coverage 94.52% 94.45% -0.08%
==========================================
Files 347 347
Lines 9905 9914 +9
Branches 696 698 +2
==========================================
+ Hits 9363 9364 +1
- Misses 455 461 +6
- Partials 87 89 +2 |
backend/pycon/urls.py
Outdated
|
|
||
|
|
||
| if settings.DEBUG: | ||
| if settings.ENABLE_DJANGO_DEBUG_TOOLBAR: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need the 2 nested ifs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed in one line
This commit introduces the ability to enable the Django Debug Toolbar
for local development. The toolbar can be activated by setting the
`ENABLE_DJANGO_DEBUG_TOOLBAR` environment variable to `True`.
Changes include:
- Adding the necessary configuration in `settings/base.py`
- Updating `urls.py` to include debug toolbar URLs
- Adding `django-debug-toolbar` to development dependencies in
`pyproject.toml` and `uv.lock`
The backend README was deleted because it was outdated. We now use Docker to run the entire application due to dependencies on Postgres and Astro.
3b000ee to
de06d7a
Compare
What
ToDo