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 2 years, 1 month ago
- Admin Apps Names Translation by Nad/ 3 years, 3 months ago
- Template tag to create mailto links with options by celopes 3 years, 11 months ago
- Extended Paginator by davisp 5 years, 8 months ago
- monkey-patch django to use jinja2 templates for 404/500 pages and 3rd-party apps by brondsem 4 years, 2 months ago
Comments
Hey
really useful little snippet!
I just don't like the setup.py thingie :)
#