If you can get your hands on a copy of Two Scoops of Django 1.11, there
is a whole chapter on DRF. I've just had a look through it (20+ pages)
and I reckon it will answer all your questions.
On 23/08/2018 5:10 AM, vineeth sagar wrote:
Hi I am pretty comfortable django. Now recently started working on a
fresh project, they want a normal project and an browsable api. I have
seen the drf and it's great, the browsable api in drf documentation is
what they(my boss) wants. How do I start developing both of them
simultaneously. I will have all the models written in the normal
django applications, all I have to do is make model serializers for
the api, that's straight forward, The views of our django project that
return json data can be made as a drf views and can be made callable
without re-writing much of the logic. How ever the doubt I have is,
how should I handle views that render webpages? Should I re-write the
whole functions again to return json data, or Is there something
available in the drf that will help with this? I am new to making
api's. I know for a fact an api returns json data. How can I handle
this particular case please help me. If any parts of the questions
confusing you please ask me I will give you the clarification. If my
concept has a flaw(Which I think there is) please correct me.
Thanks
vineeth
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/637196ee-178a-40f2-b2a8-1fee569802db%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/637196ee-178a-40f2-b2a8-1fee569802db%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/1aaaf770-14a4-0b56-1e5d-42815b62639c%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.