Django Template Context Processors Autocompletion
已回答
Hello everyone:
I've googled and hunted in these forums, but can't seem to see anyone discussing this. Perhaps I'm overlooking something...
Passing context into a template from views works great, but context from the template context processors does not autocomplete at all. For example, if I have the following in my settings:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.request',
'django.contrib.messages.context_processors.messages',
],
},
},
]
All templates will have the request and messages context passed in regardless of what the view does.
it would be great to have autocomplete for some of these as well.
请先登录再写评论。
Hello.
Please vote for https://youtrack.jetbrains.com/issue/PY-20115 , should be fixed as part of it