You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% blocktranslate as %} (paste) {% endblocktranslate %}
comment
{# #}
comment_block
{% comment %} {% endcomment %}
comment_paste
{% comment %} (paste) {% endcomment %}
csrf_token
{% csrf_token %}
cycle
{% cycle %}
debug
{% debug %}
elif
{% elif %}
else
{% else %}
empty
{% empty %}
endautoescape
{% endautoescape %}
endblock
{% endblock %}
endcomment
{% endcomment %}
endfilter
{% endfilter %}
endfor
{% endfor %}
endif
{% endif %}
endifchanged
{% endifchanged %}
endspaceless
{% endspaceless %}
endverbatim
{% endverbatim %}
endwith
{% endwith %}
extends
{% extends '...' %}
filter
{% filter %} {% endfilter %}
filter_paste
{% filter %} (paste) {% endfilter %}
firstof
{% firstof %}
for
{% for %} {% endfor %}
for_paste
{% for %} (paste) {% endfor %}
forempty
{% forempty %} {% empty %} {% endfor %}
forempty_paste
{% forempty %} (paste) {% empty %} {% endfor %}
if
{% if %} {% endif %}
if_paste
{% if %} (paste) {% endif %}
ifchanged
{% ifchanged %} {% endifchanged %}
ifchanged_paste
{% ifchanged %} (paste) {% endifchanged %}
ifelse
{% if %} {% else %} {% endif %}
ifelse_paste
{% if %} (paste) {% else %} {% endif %}
include
{% include '...' %}
lorem
{% lorem %}
now
{% now %}
regroup
{% regroup %}
regroup_example
{% regroup %} (example)
resetcycle
{% resetcycle %}
spaceless
{% spaceless %} {% endspaceless %}
spaceless_paste
{% spaceless %} (paste) {% endspaceless %}
static
{% static '...' %}
static_paste
{% static '(paste)' %}
tag
{% tag %}
templatetag
{% templatetag %}
translate
{% translate '' %}
translate_paste
{% translate '(paste)' %}
url
{% url '...' %}
urlas
{% url '...' as var %}
urlpk
{% url '...' pk=object.pk %}
urlslug
{% url '...' slug=object.slug %}
verbatim
{% verbatim %} {% endverbatim %}
verbatim_paste
{% verbatim %} (paste) {% endverbatim %}
widthratio
{% widthratio %}
with
{% with %} {% endwith %}
with_paste
{% with %} (paste) {% endwith %}
templates / variables
Trigger
Description
super
Variable - block.super
username
Variable - username
variable
Variable - empty
templatetags / functions
Trigger
Description
register_assignment_tag
Custom Tag - Assignment
register_filter
Custom Filter - Regular
register_inclusion_tag
Custom Tag - Inclusion
register_simple_tag
Custom Tag - Simple
templatetags / imports
Trigger
Description
idefaultfilters
from django.template.defaultfilters
ilib
TemplateTags - Import Library
urls / imports
Trigger
Description
iconf_urls
Utility functions for use in URLconfs.
iconf_urls
Utilityfunctions for use in URLconfs.
iurlresolvers
*Deprecated since version 1.10* Utility functions.
iurls
Utility functions for use in URLconfs.
iurls
Utility functions for use in URLconfs.
urls / methods
Trigger
Description
path_inline
Route - path(route, view, name)
path_stack
Route - path(route, view, name)
url_inline
Route - url(regex, view, name)
url_stack
Route - url(regex, view, name)
urlpatterns
urlpatterns = []
urls / regexes
Trigger
Description
repk
Regex - PK URL
reslug
Regex - Slug URL
reusername
Regex - Username URL
views / classes
Trigger
Description
createview
View - class (CreateView)
deleteview
View - class (DeleteView)
detailview
View - class (DetailView)
listview
View - class (ListView)
templateview
View - class (TemplateView)
updateview
View - class (UpdateView)
views / functions
Trigger
Description
view
View - function (render)
view_hr
View - function (httpResponse)
views / imports
Trigger
Description
igenericviews
from django.views.generic
ihttpresponse
from django.http import HttpResponse
imessages
from django.contrib import messages
irender
from django.shortcuts import render
ivdcache
from django.views.decorators.http
ivdhttp
from django.views.decorators.http
views / methods
Trigger
Description
dispatch
Method - dispatch
get_context_data
Method - get_context_data
get_queryset
Method - get_queryset
5. Autocompletion
Template, Staticfiles and Url autocompletion
[!TIP]
Whenever you create a template or register a new url you need to run the command Code Django: update cache or wait for the cache to update itself.
Installation
From vscode
Launch VS Code Quick Open (Ctrl+P)
Paste ext install almahdi.code-django
Press enter
From cli
Open terminal
Enter : code --install-extension almahdi.code-django