Re: Django and an indirect access to the database tables (over stored procedures calls for data retrieval and modification)
On Tue, 8 Mar 2011 10:11:57 -0800 (PST), Vazir <anton.vazir@gmail.com> wrote:
> there is no way (and no need) of giving a Django models with direct
> access to a DB structure (all business logic is already bult in to the
> DB), all DB interaction must be done via the stored procedures calls.
Well, you have to call your stored procedures in a way that depends on
your stored procedures. There is no django support for this, it's all
do-it-yourself.
It's probably best to ignore all the model stuff in django. Django loses
a lot of features in such a setting, unfortunately.
Take a look at the python DB API, and do everything with that.
http://www.python.org/dev/peps/pep-0249/
Kind regards
Michael
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home