Just a quick tip: Sometimes you need a little JSON endpoint for some
feature of your site or project, and a full REST framework like DRF is
completely overkill. Django makes this incredibly easy, out of the box:
from django.http import JsonResponse
def some_view(request):
my_dict =
>
> From what ive seen when i use it its like django admin but with more
> features.
>
Django Admin is not an API, nor can it be used that way. If you need API
functionality, you would write the interface yourself, or use a package
such as DRF.
DRF and the Django Admin perform the same
Hi Robert,
The main reason for using django rest framework is if you need a backend to
communicate with one or more rich frontends. An example could be if you
have a website running django and you want to create a mobile application
for iOS or android. You can then create an API that will
>From what ive seen when i use it its like django admin but with more
features.
I also noticed that it has the serializers are those for like using it with
a machine ot translatign code?
I also have question on why its needed i understand that the api is for
client and users to collect data is
4 matches
Mail list logo