#35680: Add default automatic imports to shell
-------------------------------------+-------------------------------------
Reporter: Salvo | Owner: Salvo Polizzi
Polizzi |
Type: | Status: assigned
Cleanup/optimization |
Component: Core | Version: dev
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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` and
`django.utils.timezone` modules
- Utilites for making or debugging database queries, namely
`django.db.models` and `django.db.models.functions`modules
- Settings of your projects, namely `django.conf.settings`
--
Ticket URL: <
https://code.djangoproject.com/ticket/35680>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.