django-staticfiles-google-code-prettify

Software screenshot:
django-staticfiles-google-code-prettify
Software informatie:
Versie: 1.0
Upload datum: 20 Feb 15
Ontwikkelaar: Scott Rubin
Licentie: Gratis
Populariteit: 0

Rating: 4.0/5 (Total Votes: 1)

django-staticfiles-google-code-Prettify is een Django app om gemakkelijk zijn Google-code-mooier in je Django apps.
installatie
Installeer dit pakket met behulp van pip
& Nbsp; pip installeren django-staticfiles-google-code-prettify
Zorg ervoor dat uw Django project is geconfigureerd om staticfiles gebruiken, deze vervolgens toe te voegen aan uw INSTALLED_APPPS
& Nbsp; INSTALLED_APPS + = ['django-staticfiles-google-code-Prettify',]
Gebruik
U kunt dit op twee verschillende manieren in uw sjablonen.
STATIC_URL
& Nbsp; & lt; koppeling 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;
statische template tag
& Nbsp; {% belasting statisch uit staticfiles%} & lt; koppeling href = "{% static 'google-code-Prettify / css / prettify.css"%} "type =" text / css "rel =" stylesheet "/ & gt; & Lt; script type = "text / javascript" src = "{% static 'google-code-Prettify / js / prettify.js"%} "& gt; & lt; / Script & gt;

Eisen

  • Python
  • Django

Reacties op django-staticfiles-google-code-prettify

Reacties niet gevonden
Commentaar toe te voegen
Zet op de beelden!