Skip to main content

Django shell with imported models

Project description

Latest PyPI version Supports Wheel format

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-extended-shell-0.1.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

django_extended_shell-0.1.6-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file django-extended-shell-0.1.6.tar.gz.

File metadata

  • Download URL: django-extended-shell-0.1.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for django-extended-shell-0.1.6.tar.gz
Algorithm Hash digest
SHA256 df7e9bbff5d9c82ad631ffe89d3c1fab2275766fe08603f2f815dcc67789bf80
MD5 d300cf666e924929868ff9c26a7538d6
BLAKE2b-256 365f9fe05d284facdccee9bde4386cad2ab73e9f4bc3c7308ce2a33800772ca2

See more details on using hashes here.

Provenance

File details

Details for the file django_extended_shell-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: django_extended_shell-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for django_extended_shell-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9153ae37d893f412aedeb722e0566d214b877779f8ac9a609b8e6480f76ddb13
MD5 052203b0d8315ab75702a7b628b1df6f
BLAKE2b-256 9e5b32891819643781b2edd300797e573a3eb2916b46f29d88f8d6b90f327e4b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page