Opened 8 months ago
Last modified 4 weeks ago
#35680 assigned New feature
Add default automatic imports to shell
Description ¶
It could be useful for the final shell's user to have some default imports to avoid extra work of customizing to the user. Following this discussion https://forum.djangoproject.com/t/default-automatic-imports-in-the-shell/33708 , it appears that the most used objects are:
- Utilities for date and timezone, namely
datetime
anddjango.utils.timezone
modules - Utilites for making or debugging database queries, namely
django.db.models
anddjango.db.models.functions
modules - Settings of your projects, namely
django.conf.settings
According to the ticket's flags, the next step(s) to move this issue forward are:
- To improve the patch as described in the pull request review comments or on this ticket, then uncheck "Patch needs improvement".
If creating a new pull request, include a link to the pull request in the ticket comment when making that update. The usual format is:
[https://github.com/django/django/pull/#### PR]
.
Change History (10)
comment:1 by , 8 months ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Cleanup/optimization → New feature |
comment:2 by , 7 months ago
Has patch: | set |
---|
comment:3 by , 7 months ago
Needs documentation: | set |
---|---|
Patch needs improvement: | set |
comment:4 by , 5 months ago
Cc: | added |
---|
comment:5 by , 7 weeks ago
Needs documentation: | unset |
---|---|
Patch needs improvement: | unset |
comment:6 by , 7 weeks ago
Needs documentation: | set |
---|
comment:7 by , 6 weeks ago
Needs documentation: | unset |
---|
comment:8 by , 5 weeks ago
Patch needs improvement: | set |
---|
comment:9 by , 5 weeks ago
Patch needs improvement: | unset |
---|
comment:10 by , 4 weeks ago
Patch needs improvement: | set |
---|
Accepting following positive forum discussion. Thank you Salvo for raising this ticket, and working on it!