django-staticfiles-google-code-prettify

Sagteware kiekie:
django-staticfiles-google-code-prettify
Sagteware besonderhede:
Weergawe: 1.0
Upload datum: 20 Feb 15
Ontwikkelaar: Scott Rubin
Lisensie: Gratis
Populariteit: 0

Rating: 4.0/5 (Total Votes: 1)

Django-staticfiles-google-kode-aardig is 'n Django app om maklik sluit in Google-kode-aardig in jou Django apps.
Installasie
Installeer hierdie pakket met pit
& Nbsp; pit installeer Django-staticfiles-google-kode-aardig
Maak seker dat jou Django projek is ingestel staticfiles te gebruik, voeg dit dan by jou INSTALLED_APPPS
& Nbsp; INSTALLED_APPS + = ['Django-staticfiles-google-kode-aardig "]
Gebruik
Jy kan dit gebruik in twee verskillende maniere in jou templates.
STATIC_URL
& Nbsp; & lt; skakel href = "{{STATIC_URL}} Google-kode-aardig / css / prettify.css" type = "text / css" rel = "stylesheet" / & gt; & Lt; script type = "text / javascript" src = "{{STATIC_URL}} Google-kode-aardig / js / prettify.js" & gt; & lt; / Script & gt;
statiese sjabloontagcode
& Nbsp; {% vrag statiese uit staticfiles%} & lt; skakel href = "{% statiese" google-kode-aardig / css / prettify.css "%}" type = "text / css" rel = "stylesheet" / & gt; & Lt; script type = "text / javascript" src = "{% statiese" google-kode-aardig / js / prettify.js "%}" & gt; & lt; / Script & gt;

Vereistes :

  • Python
  • Django

Kommentaar te django-staticfiles-google-code-prettify

Kommentaar nie gevind
Kommentaar te lewer
Draai op die foto!