3rd Party App Directories

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

  1. collectstatic for media folders by pterk 10 months, 3 weeks ago
  2. Admin Apps Names Translation by Nad/ 2 years ago
  3. Extended Paginator by davisp 4 years, 5 months ago
  4. monkey-patch django to use jinja2 templates for 404/500 pages and 3rd-party apps by brondsem 2 years, 11 months ago
  5. Little middleware that create a facebook user by marinho 4 years, 1 month ago

Comments

pgugged (on June 30, 2008):

Hey

really useful little snippet!

I just don't like the setup.py thingie :)

#

(Forgotten your password?)