[Answered ]-Django, TastyPie, Authentication, and custom middleware headache

2👍

TastyPie requests go through the same stack of middlewares as any typical django request. So, it’s definitely your middleware. You have to rethink it, or just drop to the basics and use @login_required.

The api key doesn’t work after you disabled the middleware because your URL is malformed. You can’t use a ? in a querystring after you used it once. Try this url:

http://192.168.1.130:8080/ios/v1/system/C0156/?username=garfonzo&api_key=12345&format=JSON

Leave a comment