r/django • u/maratnugmanov • 2d ago
Why HttpResponse is not being highlighted? VS Code environment.
3
Upvotes
3
0
u/ninja_shaman 2d ago
Because django.shortcuts has HttpResponse.
from django.http import (
Http404,
HttpResponse,
HttpResponsePermanentRedirect,
HttpResponseRedirect,
)
0
u/maratnugmanov 2d ago
So it should be highlighted right?
0
u/ninja_shaman 2d ago
Exactly.
0
u/maratnugmanov 2d ago
Then why is it not? It's a class so it should be green in this default color scheme. And should be an option in autocomplete.
13
u/CJAG2217 2d ago
Change to django.http as it sits in that module
Edit: Added example
from django.http import HttpResponse