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.7.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_extended_shell-0.1.7-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-extended-shell-0.1.7.tar.gz
  • Upload date:
  • Size: 3.2 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.7.tar.gz
Algorithm Hash digest
SHA256 7dc18141e17f99510b2b1c85741e77abc829bc1eb8a073323f8d415fca743ec6
MD5 1021b119dfabdfd4eeaebfba8d0acc74
BLAKE2b-256 a547fa9c42084628f791c35e7e1a7fc062f7e5c463c1e807e14a04ac1818a064

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_extended_shell-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a74a7ba4685efeeea3bec81a8aa0a773a05dc5b3b1ec893f4fadc1eaa28fca77
MD5 7ec05dae0ccc60dbed77f79722189f0f
BLAKE2b-256 c831ab9bb027f59f23d036725b67c85d6cf837bf4e3b22d2b168ab37ce18bfb9

See more details on using hashes here.

Supported by

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