Posted By

magicrebirth on 10/19/10


Tagged

path sys PYTHONPATH


Versions (?)

How to Add Locations to Python Path in Django


 / Published in: Python
 

URL: http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/

  1. import os
  2. import sys
  3. PROJECT_ROOT = os.path.dirname(__file__)
  4. sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps"))

Report this snippet  

You need to login to post a comment.