DRF, DjangoVanillaViews and API based architecture

72 views
Skip to first unread message

Jadav Bheda

unread,
Dec 1, 2016, 6:43:40 PM12/1/16
to 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

unread,
Dec 2, 2016, 12:07:00 PM12/2/16
to 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

unread,
Dec 2, 2016, 1:57:51 PM12/2/16
to 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

unread,
Dec 3, 2016, 3:33:55 AM12/3/16
to 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.

Reply all
Reply to author
Forward
0 new messages