I'm trying to code an application that can work for several projects. I'm facing a problem that I have always to specify the name of the project when I do the imports like doing import some_project_name.models
inside my app, how can I overcome this coupling so that I can use the app in several projects?
views:
40answers:
1
+2
A:
Move the app to a common directory, outside of any project.
Each project's
PYTHONPATH
must then include this common directory.
S.Lott
2010-10-12 21:19:15