You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.
I get the following when I added Django 1.10a1 to my tox environment:
.tox/py27-django110/lib/python2.7/site-packages/rest_framework_swagger/urls.py:2: in <module>
from rest_framework_swagger.views import SwaggerResourcesView, SwaggerApiView, SwaggerUIView
.tox/py27-django110/lib/python2.7/site-packages/rest_framework_swagger/views.py:8: in <module>
from django.shortcuts import render_to_response, RequestContext
E ImportError: cannot import name RequestContext
I believe this is because RequestContext is supposed to come from django.template, not django.shortcuts.
I get the following when I added Django 1.10a1 to my tox environment:
I believe this is because
RequestContext
is supposed to come fromdjango.template
, notdjango.shortcuts
.https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.RequestContext
AFAIK, changing this should be fully backward compatible.
The text was updated successfully, but these errors were encountered: