[PyDelhi] [Query] [DRF] Raw SQL Query by passing Model and Model Serializer

Gora Mohanty gora at mimirtech.com
Fri Oct 30 00:14:01 EDT 2015


On 30 October 2015 at 07:57, Anuvrat Parashar <anuvrat at anuvrat.in> wrote:
> Aniket, thats a whole branch. please point to an individual file / model /
> resource that you are trying to query on.
>
> Besides, if you want to bypass the model / serializer thing. why not create
> a plain old django view, and write the raw sql inside it?

Agreed. It would make sense to just use a Django view. Not everything
has to go through DRF even if you are using it, though I would then
question whether you need DRF at all.

Maybe you could explain what you are trying to do.

Regards,
Gora


More information about the Ncr-Python.in mailing list