This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Load your django apps by app name rather than module path.

Project Description

djapps allows you to load your django apps by their app names rather than by the module path. This is particularly useful if you don’t know where modules will be installed or if you plan to allow overriding of your apps (eg a user replaces your foo.bar app with myfoo.bar).

Usage

If you have a django app called bar in a package called foo (such that you would add foo.bar to your INSTALLED_APPS) then you can get hold of bar without knowing its full module path:

import djapps.bar

djapps hooks into python’s regular import mechanism so all the normal ways to import things will work:

from djapps.bar import models
from djapps.bar.models import MyModel as ThisIsMyModel

Your app names in a django project should all be unqiue, djapps won’t work if they are not (but django won’t like that either).

Installation

Use your favorite install method, for example:

$ pip install djapps

You do not need to add djapps to your INSTALLED_APPS, just start using it.

Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
djapps-0.1.1.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Apr 17, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting