I'm making an internal API with TastyPie. I have
from tastypie.resources import ModelResource
from tastypie.authentication import ApiKeyAuthentication
from myapp.movie.models import Movie
class MovieResource(ModelResource):
class Meta:
queryset = Movie.objects.all()
resource_name = 'movie'
authentication = ApiKeyAuthentication()
With Auth rules disabled, my API works great. With it on, I get a 401 (UNAUTHORIZED) response.
URL is
http://127.0.0.1:8000/api/movie/?format=json
thank you
UPDATE: I've same problem. Django Tastypie: How to Authenticate with API Key