Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Apreche/django-staticfiles-google-code-prettify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-staticfiles-google-code-prettify

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>

About

Google code prettify packages for django-staticfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published