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>
Release files for django-staticfiles-google-code-prettify 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-staticfiles-google-code-prettify-1.0.tar.gz | 21.7 kB | Details |
Release files / django-staticfiles-google-code-prettify-1.0.tar.gz
| Download URL | django-staticfiles-google-code-prettify-1.0.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
713c7887b0dee1b41a00b5ab90c3ba79d510e051d17ba21bf38d4c84e09abd54
|
|
BLAKE2b-256 checksum How to use checksums |
c07ec69d5f2c3cbc41e9c72f8534e4a6691ba4c269bf220894e40fc70b8e6adf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |