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 2 years, 1 month ago
  2. Admin Apps Names Translation by Nad/ 3 years, 3 months ago
  3. Template tag to create mailto links with options by celopes 3 years, 11 months ago
  4. Extended Paginator by davisp 5 years, 8 months ago
  5. monkey-patch django to use jinja2 templates for 404/500 pages and 3rd-party apps by brondsem 4 years, 2 months ago

Comments

pgugged (on June 30, 2008):

Hey

really useful little snippet!

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

#

(Forgotten your password?)