Hi All,

I am using "django_restapi" (http://code.google.com/p/django-rest-
interface/) to quickly gain access in a RESTful way to some tables in
a legacy database. I am only really interested in reading the records
and sending them back in XML or JSON format. I don't need to create,
update or delete any records.

So far "django_restapi" works great for the simple case of accessing
individual models. But as soon as I try to do anything more useful I
get stuck. I have an old Perl script which accesses the same legacy
database and using a custom SQL query returns a bunch of records. I
would like to add a new model to my RESTful Django app which would
perform the equivalent query. I don't want to do it in a view because
then I will have to write all that boiler-plate code that's already in
"django_restapi", such as handling errors, returning correctly
formatted and serialised query sets etc.

I want to write a dynamic model which doesn't correspond to any real
table and plug it straight into "django_restapi". The dynamic nature
of this model would come from the fact that it has to dynamically
compute query sets using custom SQL statements. I don't seem to be
able to find anything relevant to this problem anywhere. Surely it
must be a frequently encountered problem. I would appreciate any help
I can get with this.

cheers,
-tomek


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to