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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16353c3ffabe54a110da696a8b25ecfc6c71d8058afe8b22d5d192f603b0e235 |
|
MD5 | 034b0bafacfaaa4dc9150c8039562bff |
|
BLAKE2b-256 | e88b91046086a1db81324e227161bd79fe78a913506102d5a99395cc043fe044 |
Close
Hashes for django_extended_shell-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c95be0d20c2d62d66c2af53b852209db1bc7b3c4a89940817ae55018c1fdfd14 |
|
MD5 | b2cb9f2b169776e9f70dc9cc5116d385 |
|
BLAKE2b-256 | bd45f06e3d2727c6ce6586cabe47ce38d449036f526d5f43e908e32937db2cfb |