Django Rest Framework - Authentication credentials were not provided

前端 未结 12 1681
野性不改
野性不改 2020-12-04 07:12

I\'m developing an API using Django Rest Framework. I\'m trying to list or create an \"Order\" object, but when i\'m trying to access the console gives me this error:

<
12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 08:08

    Since it is session Login so you need to provide you credentials so do 127.0.0:8000/admin admin and login later it will work fine

提交回复
热议问题