interacting with an external django project from within another django project
Why not replicate the models from the crawler into your new project (so they are created in the same project space), then simply use django's manage.py to dump the data from the old crawler project into json files and migrate them over to your new project?
Provided your crawler project is settings/db type independent, you should be able to migrate your handlers/views/urls whatever you have to the new project and merge them together too?
If you keep the external models in sync in the new project, you will not have to do any extra work and you could use something like south app to migrate the data context.
That way you can simply import the old models in the new project and have them interact directly.
Otherwise, you are looking at message passing/network communication i.e. inter process communication.
I'm looking for a way to interact with the models of a django project from within a separate django project. I don't mean different apps, I mean 2 separate projects with 2 separate settings files.
I'm in the process of migrating an old web store (really old, it's all static html) to our django based backend. To do this, I created a separate django app that would handle all of the crawling and parsing, using the django orm and a few views for human assisted parsing. Now I'm at a point where I need to populate the catalog data of our backend with the data stored in the crawler project. I've spent the better part of the last 2 days trying to figure out a method, with no luck.
What I'd ideally like to do is import the store project as a module into a django command class and then interact with it that way (mind you, they are working off of 2 separate settings files, so setup_environ won't work). I'd like to avoid serializing the crawler data and then importing it from the store or interacting with the store database outside of django's orm because this project is far from over and I'd prefer to keep things as flexible as possible.
What would you suggest? I'm up for wild ideas, so long as I can interact with the orm of both projects from within a single script.