Hovedproblemet er at Django-HTML ikke støtter gjengivelse av HTML-filer fra kommandolinjen.
5-appcache I'm using Django 1.8 and django-html5-appcache 0.4.1, and I have the following code in my template: <code>{% load appcache %} <!DOCTYPE html> <html manifest="{{ STATIC_URL }}manifest.appcache" {% html5_appcache %}> </code> However, when I type <code>manifest=</code>, the code suggestion doesn't work: it doesn't suggest <code>{{ STATIC_URL }}manifest.appcache</code>. It does work if I type <code>manifest="{{ STATIC_URL }}</code>, but then it doesn't suggest <code>manifest.appcache</code>. How can I get it to suggest both?
Kodelinjen {% load appcache %}
laster Django appcache mal tag-biblioteket.
Kodelinjen <html manifest="{{ STATIC_URL }}manifest.appcache" {% html5_appcache %}>
setter manifestattributtet til html-taggen til verdien av STATIC_URL-variabelen, sammenkoblet med "manifest.appcache". {% html5_appcache %} mal-taggen brukes til å legge til en kommentar som indikerer at siden har blitt bufret med HTML5 AppCache.
Hvordan kan jeg autofullføre både HTML og Django-HTML
Det er ingen innebygd måte å autofullføre både HTML og Django-HTML i Django. Du kan imidlertid bruke et tredjepartsbibliotek som django-html5lib eller html5lib for å autofullføre både HTML og Django-HTML.