DRF, DjangoVanillaViews and API based architecture

瀏覽次數:72 次
跳到第一則未讀訊息

Jadav Bheda

未讀,
2016年12月1日 下午6:43:402016/12/1
收件者:Django REST framework

Hi Tom,


I am one of your biggest fan. I really appreciate and amazed by your work especially DRF and DjangoVanillaViews -- simple and beautiful.


A line about me: Software Engineer for past 11 years. I happened to be a scripting guy (automation testing), but somehow get - forcefully - bumped into python/django world about 5-6 years back.
I consider my self below average Django programmer. (Django is too complex for me!!)


I wanted to know your views/suggestions on below two points. Feel free to reply anytime convenient to you.


Now, coming to the point: I generally don't prefer django forms and templates (I hate them, actually!). Rather I prefer models in Django, and use DRF for serializer/views and create CRUD APIs. So far so good,
but recently I came to know about the DjangoVanillaViews and wondering if somehow I can use it, along with DRF (i.e. DRF + Vanilla). Any thought about it?


Another thing: As mentioned above, I generally have django to serve just APIs. And keep frontend HTML+JS serve by Nginx. Again, I am terrible with front end JS frameworks like Angular, React etc.
(reason being too steep learning curve and complexities!). Any suggestion about how to handle CRUD AJAX boiler plate in frontend?


Best Regards,

Jadav

Tom Christie

未讀,
2016年12月2日 中午12:07:002016/12/2
收件者:Django REST framework
I came to know about the DjangoVanillaViews and wondering if somehow I can use it, along with DRF (i.e. DRF + Vanilla). Any thought about it?

The generic views in REST framework follow a similar style to those in vanilla views, in that they're fairly flat. And no, you can't use them together. If it's not required to support API usage then I'd suggest vanilla views. Otherwise, use the generic API views. 

> Any suggestion about how to handle CRUD AJAX boiler plate in frontend?

No easy answers there. Work from one of the React tutorials and go from there I suppose.

All the best!

  Tom

Asif Saifuddin

未讀,
2016年12月2日 下午1:57:512016/12/2
收件者:Django REST framework
Hi,

I would recommend to give ember.js a try. If you can't absorb it give vue.js a try. I don't like angular and react for some reason.

As a django developer I found ember most appropriate to fit my mental model as a developer.

Thanks

Jadav Bheda

未讀,
2016年12月3日 凌晨3:33:552016/12/3
收件者:django-res...@googlegroups.com
Thanks Asif and Tom for your suggestions and reply.

I will give react and ember both a try.

--
You received this message because you are subscribed to a topic in the Google Groups "Django REST framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-rest-framework/Tbt8_O9ESHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-rest-framework+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

回覆所有人
回覆作者
轉寄
0 則新訊息