testing API

13 views
Skip to first unread message

Shubham Joshi

unread,
Apr 23, 2019, 12:14:35 AM4/23/19
to Django users
I have created the custom model authentication in django rest , so far I dont have front end , so my question is , Im I done with the API, since on browser it gives an error TemplateDoesNotExist at /
rest_framework/api.html that of course due to I dont have template, in postmen its giving {
"detail": "Method \"GET\" not allowed."
} , Am I going right?

https://github.com/shubham1507/school

Jani Tiainen

unread,
Apr 23, 2019, 1:53:39 AM4/23/19
to django...@googlegroups.com
Hi,

DRF does have built-in API viewer. To enable that you need to add rest_framework app in your INSTALLED_APPS so it can find necessary templates for showing.

--
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...@googlegroups.com.
To post to this group, send email to django...@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/5596723f-0358-41b5-9b0f-cf0f9dc84057%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen
Software wizard


Always open for short term jobs or contracts to work with Django.
Reply all
Reply to author
Forward
0 new messages