Django shell with imported models
Project description
====================== django-extended-shell
.. image:: https://badge.fury.io/py/django-extended-shell.svg :target: https://badge.fury.io/py/django-extended-shell
A tiny application that import models from INSTALLED_APPS when manage.py shell
command called.
Getting It
You can get django-extended-shell by using pip::
$ pip install django-extended-shell
Installing It
To enable django-extended-shell
in your project you need to add it to INSTALLED_APPS
in your projects
settings.py
file::
INSTALLED_APPS = (
...
'extended_shell',
...
)
Settings
Available settings, see extended_shell/settings.py ::
# Enable or disable import colors (Default: True)
EXTENDED_SHELL_COLORED = True
# Import models from INSTALLED_APPS (Default: True)
EXTENDED_SHELL_IMPORT_APPS_MODELS = True
# List of custom user modules
EXTENDED_SHELL_IMPORTS = []
# List of usefull django utils
EXTENDED_SHELL_DEFAULTS = [
'django.conf.settings',
'django.core.cache.cache',
'django.utils.timezone',
'django.db.models.Avg',
'django.db.models.Count',
'django.db.models.F',
'django.db.models.Q',
'django.db.models.Max',
'django.db.models.Min',
'django.db.models.Sum'
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-extended-shell-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2336799ff6218c806be1b6fbe642917d496819f72d78f62f3cfb1ac57493f1c |
|
MD5 | c9e17419cbcc549e5e34052e9d35008c |
|
BLAKE2b-256 | 8359cc9f11ee02fe37eb0f57e08a769707ae8330bc88bdc67f80e5eada23391b |
Close
Hashes for django_extended_shell-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d414040f5e74ee7edb93efec2ff537255211c5daf5757c1effa2bdde5fd6f90 |
|
MD5 | b670cd1e0d9ace230bd3a1e87b5a2fbf |
|
BLAKE2b-256 | 87baaba0c588aea04b7f032f7b62398be3232189fcbcf4cf5555c8caab1d7db6 |