> I'm looking to find out if there's a method to access django models in other
> applications outside of the django project structure. What I'm looking to
> do is import a model from one of the apps in my project:
>
> from project.app import models
Have you tried doing exactly that? A Django app is just a python
module, so as long as project.app is on your PYTHONPATH when you run
manage.py, a simple import should work.
Yours,
Russ Magee %-)
A minimal settings file with db connection info should do the trick.
Depending on how you plan to run your app, you can either permenantly
set the DJANGO_SETTINGS_MODULE environment variable via the OS or in
you python code.
In your python code this should do the trick ( where myproject is on
your pythonpath):
import os
os.environ['DJANGO_SETTINGS_MODULE'] = "myproject.settings"
--
----
Waylan Limberg
way...@gmail.com