Setting up django rest framework -
i have setup django rest framework , started initial tutorial..its running fine ,
i msg when run it--
{ "detail": "authentication credentials not provided." } i have 1 user beingness setup ..not sure dont see in resultset. when go shell , seek user.objects.all(), see user.
i apologise if problem not simple, have authenticated django site?
a quick way moving; go django admin console, log in , go api.
in older versions of django have enable admin console in [project]/settings.py , [project]/urls.py.
https://docs.djangoproject.com/en/1.6/ref/contrib/admin/
i tend have both open in separate tabs when building, , when first started rest_framework didn't realise tutorial leverages django auth default until got auth part of tute. felt bit silly beingness complacent how of current gen tech works these days!
django-rest-framework
No comments:
Post a Comment