django-staticfiles-google-code-prettify

Software screenshot:
django-staticfiles-google-code-prettify
Software detaljer:
Version: 1.0
Upload dato: 20 Feb 15
Udvikler: Scott Rubin
Licens: Gratis
Popularitet: 0

Rating: 4.0/5 (Total Votes: 1)

Django-staticfiles-google-code-forskønne er en Django app til nemt omfatter google-code-forskønne i din Django apps.
Installation
Installer denne pakke ved hjælp pip
& Nbsp; pip installere Django-staticfiles-google-code-forskønne
Sørg for, at django projekt er konfigureret til at bruge staticfiles, derefter tilføje dette til dine INSTALLED_APPPS
& Nbsp; INSTALLED_APPS + = ['Django-staticfiles-google-kode-forskønne «,]
Anvendelse
Du kan bruge dette på to forskellige måder i dine skabeloner.
STATIC_URL
& Nbsp; & lt; link href = "{{STATIC_URL}} google-code-forskønne / css / prettify.css" type = "text / css" rel = "stylesheet" / & gt; & Lt; script type = "text / javascript" src = "{{STATIC_URL}} google-code-forskønne / js / prettify.js" & gt; & lt; / Script & gt;
statiske skabelon tag
& Nbsp; {% belastning statisk fra staticfiles%} & lt; link href = "{% statisk" google-code-forskønne / css / prettify.css "%}" type = "text / css" rel = "stylesheet" / & gt; & Lt; script type = "text / javascript" src = "{% statisk" google-code-forskønne / js / prettify.js "%}" & gt; & lt; / Script & gt;

Krav :

  • Python
  • Django

Kommentarer til django-staticfiles-google-code-prettify

Kommentarer ikke fundet
Tilføj kommentar
Tænd billeder!