On Tue, Feb 15, 2011 at 2:47 AM, John Finlay <fin...@moeraki.com> wrote:
> I am working on a app that keeps information in a non-SQL database composed
> of XML files referenced as UUIDs. In the prototype I'm directly referencing
> these using a simple api. For the production version I'm wondering if it
> would be possible to build a db backend that would allow me to use the
> django models and model forms.
>
> Does this seem like a reasonable thing to try? Are there examples of
> backends that do something similar? Or is this just to difficult to add in
> for the hoped for gain in using django models?

Possible - yes. Easy - probably not. Django's query backend is fairly
heavily weighted towards SQL, so

However, there is prior art in this area if you want to see how it
could be done.

Firstly, Django's repository has a GSoC project called query-refactor
that aimed to make the creation of non-SQL backends easier. A MongoDB
backend was provided as a proof of concept; the intention is that this
code (or something derived from it) will be merged into Django's trunk
in the 1.4 timeframe.

Secondly, there is an external Django fork called 'django-nonrel' that
does a simliar thing, using a different approach.

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to