/ Published in: Python

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import os import sys PROJECT_ROOT = os.path.dirname(__file__) sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps"))
URL: http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/
Comments
