chore(api): opt into django-extensions in settings_dev when installed#915
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #915 +/- ##
=======================================
Coverage 91.89% 91.89%
=======================================
Files 1316 1316
Lines 50633 50634 +1
Branches 1625 1625
=======================================
+ Hits 46531 46532 +1
Misses 3796 3796
Partials 306 306
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Drops a try/except guarded `INSTALLED_APPS.append("django_extensions")`
into `settings_dev.py` so devs who `pip install django-extensions` in
their local container get `manage.py shell_plus` (and the rest of the
extensions surface) for free, without forcing django-extensions as a
pinned dependency in `pyproject.toml`.
The import is wrapped in `try/except ImportError`, so dev settings
remain importable in environments that haven't installed the package.
No production settings are touched.
1cf5ab3 to
ef091ef
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ef091ef. Configure here.

Summary
ipythonanddjango-extensionsto dev settings