Opened 6 months ago
Closed 6 months ago
#36316 closed Bug (invalid)
Auto importing Django decorator's doesn't work on VS Code
Reported by: | Igor | Owned by: | |
---|---|---|---|
Component: | Uncategorized | Version: | 5.2 |
Severity: | Normal | Keywords: | django, decorators, vs code, auto import |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have made views.py and above a POST function I have written @csrf_exempt
. When I press CTRL+., such decorator does not appear in suggestions, so I have to manually enter the import statement, which is from django.views.decorators.csrf import csrf_exempt
.
Attachments (1)
Change History (2)
by , 6 months ago
Attachment: | Screenshot 2025-04-10 185053.png added |
---|
comment:1 by , 6 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This doesn't seem like a bug in Django. Until you're sure that it is, it's probably better to try to get help from the forum.