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
Add --pdb and --ipdb options to runserver_plus / all commands? #483
Comments
I see Happy to consider a Pull Request to merge this functionally into |
Sure, no objection from me 😄 |
@blueyed could you setup a Pull Request for this ? |
@trbs |
I do want this feature, but I'm concerned about the complication this might introduce to
Questions:
|
Maybe we can leverage the That way all constraints from For this it would probably be good if we create a custom base Maybe |
I looked into this again and didn't get very far. However django_pdb/management/commands/runserver.py:55 middleware = 'django_pdb.middleware.PdbMiddleware'
if ((pdb_option or settings.DEBUG)
and middleware not in settings.MIDDLEWARE_CLASSES):
settings.MIDDLEWARE_CLASSES += (middleware,) Since it always needs to be last I don't see what's wrong with relying on this. |
There is https://github.com/tomchristie/django-pdb, which adds additional options to
runserver
(which does not appear to work in Django 1.7 anymore).It uses a middleware to start pdb/ipdb in case of errors.
I think this would be a nice addition to django-extensions.
It would be even better, if these options could be added to all management commands somehow globally (requested for django-pdb in HassenPy/django-pdb#19).
The text was updated successfully, but these errors were encountered: