Django shell with imported models
Project description
====================== django-extended-shell
.. image:: https://img.shields.io/pypi/v/django-extended-shell.svg :target: https://pypi.python.org/pypi/django-extended-shell/ :alt: Latest PyPI version
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94c6445faeab5b27b3371126a5892e31f5f02c3a9bc6904fde008bca1bcf578 |
|
MD5 | e966f372a081ca992a0914ec61dc5b61 |
|
BLAKE2b-256 | 0c4ab926c8369625bbccfcca4b8bb9a5c3d5192de62d00a8145128e5a26ebbad |
Close
Hashes for django_extended_shell-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4e960322987799c66c9ec36c324ac8b38cab6628130b920ab7293da5cc31ab |
|
MD5 | 2b4150380af079b222e7a6c9e27b10e9 |
|
BLAKE2b-256 | c0925bd8831e51abd4d79a0e6725947e4d954a4fe9f469fb62e84dd8ceb88a1b |