django-staticfiles-google-code-prettify

Google Code Prettify staticfiles for django
Download

django-staticfiles-google-code-prettify Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • Scott Rubin
  • Publisher web site:
  • http://github.com/apreche/

django-staticfiles-google-code-prettify Tags


django-staticfiles-google-code-prettify Description

django-staticfiles-google-code-prettify is a Django app to easily include google-code-prettify in your Django apps.InstallationInstall this package using pip pip install django-staticfiles-google-code-prettifyMake sure your django project is configured to use staticfiles, then add this to your INSTALLED_APPPS INSTALLED_APPS += UsageYou can use this in two different ways in your templates.STATIC_URL < link href="{{ STATIC_URL }}google-code-prettify/css/prettify.css" type="text/css" rel="stylesheet" / > < script type="text/javascript" src="{{ STATIC_URL }}google-code-prettify/js/prettify.js" >< /script >static template tag {% load static from staticfiles %} < link href="{% static "google-code-prettify/css/prettify.css" %}" type="text/css" rel="stylesheet" / > < script type="text/javascript" src="{% static "google-code-prettify/js/prettify.js" %}" >< /script >Product's homepage


django-staticfiles-google-code-prettify Related Software