A management command to start a shell and auto-import all models. Unlike django command extensions shell_plus it doesn’t print out a load of gunk to the shell. Provides a mechanism so that you can add in extra imports that are specific to your project.
Install:
$ pip install django-shellng
Add into installed apps:
INSTALLED_APPS += ('shellng',)
Usage:
$ ./manage.py shellng
To import more things add a file containing a method shellng and assign that in settings. For example, make a file in the root of your Django project (or somewhere importable) called:
shellng_local.py
In it, place the following:
def shellng(imported_objects):
modules = ('urllib',) # This will add in urllib.
for mod in modules:
imported_objects[mod] = __import__(mod)
imported_objects is a dictionary of all modules to be imported. You can add or remove to it as you want in the methods. Finally add in to settings.py:
SHELLNG_METHODS = ('shellng_local',)
Metadata
Release files for django-shellng 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-shellng-0.1.2.tar.gz | 2.2 kB | Without provenance | Details |
Release files / django-shellng-0.1.2.tar.gz
| Download URL | django-shellng-0.1.2.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a502a9b1a431de93c2557714342969a666fb3d8d2a679709c0be59a098c97933
|
|
BLAKE2b-256 checksum How to use checksums |
5a8298ffeb7383cb713976ce0bcc68ce3f3a30c8a3807fa23cc4d61de577e3e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-shellng 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.