django-1.10

DRF auth_token: "non_field_errors": [ "Unable to log in with provided credentials."

DRF auth_token: "non_field_errors": [ "Unable to log in with provided credentials." Question: Both JWT packages written for Django gave me issues with poor documentation, so I try DRF-auth_token package. This is a good example I followed, Django Rest Framework Token Authentication. You should in theory be able to go to localhost:8000/api-token-auth/ urls.py: from django.conf.urls import …

Total answers: 11

Django URLs TypeError: view must be a callable or a list/tuple in the case of include()

Django URLs TypeError: view must be a callable or a list/tuple in the case of include() Question: After upgrading to Django 1.10, I get the error: TypeError: view must be a callable or a list/tuple in the case of include(). My urls.py is as follows: from django.conf.urls import include, url urlpatterns = [ url(r’^$’, ‘myapp.views.home’), …

Total answers: 6