We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get an issue: error: Module 'django.shortcuts' has no attribute 'HttpResponsePermanentRedirect'; maybe "HttpResponseRedirect"?.
error: Module 'django.shortcuts' has no attribute 'HttpResponsePermanentRedirect'; maybe "HttpResponseRedirect"?
It seems that HttpResponseRedirect is defined in django.shortcuts, but not HttpResponsePermanentRedirect.
HttpResponseRedirect
HttpResponsePermanentRedirect
No errors when running mypy
python
django
mypy
django-stubs
The text was updated successfully, but these errors were encountered:
@SRChiP would you like to submit a PR with the fix, please?
Sorry, something went wrong.
Improve django.template (typeddjango#210)
django.template
cdf62dd
- `django.template.loader.get_template` returns `django.template.base.Template`. - `django.template.loader.select_template` returns `django.template.base.Template`. - `django.template.utils.EngineHandler.__iter__` returns an iterator of `django.template.backends.base.BaseEngine`. - `django.template.utils.get_app_template_dirs` returns a tuple of `pathlib.Path`.
Successfully merging a pull request may close this issue.
Bug report
What's wrong
I get an issue:
error: Module 'django.shortcuts' has no attribute 'HttpResponsePermanentRedirect'; maybe "HttpResponseRedirect"?
.It seems that
HttpResponseRedirect
is defined in django.shortcuts, but notHttpResponsePermanentRedirect
.How is that should be
No errors when running mypy
System information
python
version: 3.7.4django
version: 2.2.5mypy
version: 0.730django-stubs
version: 1.2.0The text was updated successfully, but these errors were encountered: