Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-shellng

How to install django-shellng

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-shellng
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.2 Available View build log
0.1.1 Available View build log
0.1 Failed View build log
Windows (64-bit)
0.1.2 Available View build log
0.1.1 Available View build log
0.1 Failed View build log
Mac OS X (10.5+)
0.1.2 Available View build log
0.1.1 Available View build log
0.1 Failed View build log
Linux (32-bit)
0.1.2 Available View build log
0.1.1 Available View build log
0.1 Failed View build log
Linux (64-bit)
0.1.2 Available View build log
0.1.1 Available View build log
0.1 Failed View build log
 
Author
License
BSD
Lastest release
version 0.1.2 on Mar 3rd, 2012

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',)

Subscribe to package updates

Last updated Mar 3rd, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.