1 2 3 4 5 6 7 8 9 | APP_DIRS = (
# Put strings here like '/home/html/project/apps'
# Pretty much just like TEMPLATE_DIRS.
)
import sys
for app_dir in APP_DIRS:
sys.path.insert(0, app_dir)
|
More like this
- collectstatic for media folders by pterk 10 months, 3 weeks ago
- Admin Apps Names Translation by Nad/ 2 years ago
- Extended Paginator by davisp 4 years, 5 months ago
- monkey-patch django to use jinja2 templates for 404/500 pages and 3rd-party apps by brondsem 2 years, 11 months ago
- Little middleware that create a facebook user by marinho 4 years, 1 month ago
Comments
Hey
really useful little snippet!
I just don't like the setup.py thingie :)
#