Skip to main content

Google Code Prettify staticfiles for django

Project description

Easily include google-code-prettify in your django apps

Installation

Install this package using pip

pip install django-staticfiles-google-code-prettify

Make sure your django project is configured to use staticfiles, then add this to your INSTALLED_APPPS

INSTALLED_APPS += [‘django-staticfiles-google-code-prettify’,]

Usage

You 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>

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-staticfiles-google-code-prettify, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-staticfiles-google-code-prettify-1.0.tar.gz (21.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page