[Django] #36316: Auto importing Django decorator's doesn't work on VS Code

5 views
Skip to first unread message

Django

unread,
Apr 10, 2025, 12:54:31 PM4/10/25
to django-...@googlegroups.com
#36316: Auto importing Django decorator's doesn't work on VS Code
-------------------------------------+-------------------------------------
Reporter: Igor | Type: Bug
Status: new | Component:
| Uncategorized
Version: 5.2 | Severity: Normal
Keywords: django, decorators, | Triage Stage:
vs code, auto import | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
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`.
--
Ticket URL: <https://code.djangoproject.com/ticket/36316>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 10, 2025, 12:54:37 PM4/10/25
to django-...@googlegroups.com
#36316: Auto importing Django decorator's doesn't work on VS Code
-------------------------------------+-------------------------------------
Reporter: Igor | Owner: (none)
Type: Bug | Status: new
Component: Uncategorized | Version: 5.2
Severity: Normal | Resolution:
Keywords: django, decorators, | Triage Stage:
vs code, auto import | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Igor):

* Attachment "Screenshot 2025-04-10 185053.png" added.

Django

unread,
Apr 10, 2025, 1:31:01 PM4/10/25
to django-...@googlegroups.com
#36316: Auto importing Django decorator's doesn't work on VS Code
-------------------------------------+-------------------------------------
Reporter: Igor | Owner: (none)
Type: Bug | Status: closed
Component: Uncategorized | Version: 5.2
Severity: Normal | Resolution: invalid
Keywords: django, decorators, | Triage Stage:
vs code, auto import | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tom Carrick):

* resolution: => invalid
* status: new => closed

Comment:

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
[https://forum.djangoproject.com/c/users/6 the forum].
--
Ticket URL: <https://code.djangoproject.com/ticket/36316#comment:1>
Reply all
Reply to author
Forward
0 new messages