最佳答案
I'm working on a store site, where every user is going to be anonymous (well, until it's time to pay at least), and I'm trying to use Django REST Framework to serve the product API, but it keeps complaining about:
"detail": "Authentication credentials were not provided."
I found some settings related to authentication, but I couldn't find anything like ENABLE_AUTHENTICATION = True
. How do I simply disable authentication, and let any visitor to the site access the API?