django-staticfiles-google-code-prettify

Software screenshot:
django-staticfiles-google-code-prettify
Dettagli del software:
Versione: 1.0
Data di caricamento: 20 Feb 15
Sviluppatore: Scott Rubin
Licenza: Libero
Popolarità: 0

Rating: 4.0/5 (Total Votes: 1)

Django-staticfiles-google-code-Prettify è un app Django facilmente includere google-code-prettify in tue applicazioni Django.
Installazione
Installare questo pacchetto usando pip
& Nbsp; pip installare Django-staticfiles-google-code-prettify
Assicurati che il tuo progetto Django è configurato per utilizzare staticfiles, quindi aggiungere questo ai vostri INSTALLED_APPPS
& Nbsp; INSTALLED_APPS + = ['Django-staticfiles-google-code-Prettify',]
Utilizzo
È possibile utilizzare questo in due modi diversi nei modelli.
STATIC_URL
& Nbsp; & lt; link href = "{{}} STATIC_URL google-code-Prettify / css / prettify.css" type = "text / css" rel = "stylesheet" / & gt; & Lt; script type = "text / javascript" src = "{{}} STATIC_URL google-code-Prettify / js / prettify.js" & gt; & lt; / Script & gt;
tag template statico
& Nbsp; {% del carico statico di staticfiles%} & lt; link href = "{% statico" google-code-Prettify / css / prettify.css "%}" type = "text / css" rel = "stylesheet" / & gt; & Lt; script type = "text / javascript" src = "{% statico" google-code-Prettify / js / prettify.js "%}" & gt; & lt; / Script & gt;

Requisiti :

  • Python
  • Django

Commenti a django-staticfiles-google-code-prettify

I commenti non trovato
Aggiungi commento
Accendere le immagini!