I'm trying to append to my PYTHONPATH
the location of two Django modules (version 1.4) to use their ORM models. Here is the code:
sys.path.append('/path/project1')
sys.path.append('/path/project2')
When I try to set up the Django Enviroment as follows:
import settings
setup_environ(settings)
Only settings of project1
are loaded. I think the problem is that both models contains a file called settings.py
respectively, therefore, names collide. I cannot modify modules.
How can I add both modules settings to the Django Enviroment?