What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-19 21:12:09
build rest apis with django rest framework and python
# Package installment in terminal(Recommended : Activate virtual env) pip install djangorestframework #Project>Settings.py INSTALLED_APPS += ['rest_framework', 'rest_framework.authtoken'] REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ ... Add solution -
-
Python 2021-09-15 14:22:02
python APIVIew view
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import authentication, permissions from django.contrib.auth.models import User class ListUsers(APIView): """ View to list all... Add solution -
Python 2021-09-05 08:50:02
django rest api using files
from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from rest_framework.parsers import FileUploadParser # views.py class FileUploadView(APIView): parser_classes = [FileUploadParser] ... Add solution
Best helpers
Shaples
+5
Tranquilled
+5
Kozuch
+5
The 313137
+5
Toby Stewart
+5
Moez
+5
Stelle
+5
Kathrin
+5
Moradnejad
+5