Django shell with imported models
Project description
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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7e9bbff5d9c82ad631ffe89d3c1fab2275766fe08603f2f815dcc67789bf80 |
|
MD5 | d300cf666e924929868ff9c26a7538d6 |
|
BLAKE2b-256 | 365f9fe05d284facdccee9bde4386cad2ab73e9f4bc3c7308ce2a33800772ca2 |
Close
Hashes for django_extended_shell-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9153ae37d893f412aedeb722e0566d214b877779f8ac9a609b8e6480f76ddb13 |
|
MD5 | 052203b0d8315ab75702a7b628b1df6f |
|
BLAKE2b-256 | 9e5b32891819643781b2edd300797e573a3eb2916b46f29d88f8d6b90f327e4b |