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)

Screenshot 2025-04-10 185053.png (180.3 KB ) - added by Igor 6 months ago.

Download all attachments as: .zip

Change History (2)

comment:1 by Tom Carrick, 6 months ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top