Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

credential not provided when i try to sign up a new user django

To open up the API on non-authenticated users, you need to give it an empty list on authentication_classes:

from rest_framework.decorators import api_view, authentication_classes, permission_classes


@api_view(['GET'])
@authentication_classes([]) # Add this
@permission_classes([]) # Maybe add this too
def getProducts(request):
  ...
Comment

PREVIOUS NEXT
Code Example
Python :: pydub reproduce audiosegment 
Python :: sample one point from distribution python 
Python :: hack instagram account with python 
Python :: is complex datatype immutable in python 
Python :: odoo - add one2many field programmatically 
Python :: discord pycord add a URL button in a subclassed view 
Python :: get current worker id multiprocessing 
Python :: sonido sfr200a 
Python :: how to reverse a dictionary in python 
Python :: specificity formula python 
Python :: delete row by index pandas 
Python :: spotify python bot 
Python :: how to create a login page in python 
Python :: pil 
Python :: pandas converters example 
Python :: Mastermind 
Python :: anvil get last row of data table 
Python :: ValueError: initial_value must be specified. site:stackoverflow.com 
Python :: vectorindexer pyspark 
Python :: Drawing rectangle with border only in matplotlib 
Python :: binary table dataframe 
Python :: reading a cell from another cell in colab 
Python :: python generate sine wave pyaudio 
Python :: Freqtrade - Informative Pairs 
Python :: abstract user in django 
Python :: how do i select a range of columns by index 
Python :: loading model 
Python :: what does << do in python 
Python :: python remove list from nested list 
Python :: remove nan from list 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =