gadjo/README.txt

28 lines
756 B
Plaintext

Configuration
=============
You should add gadjo.finders.XStaticFinder to STATICFILES_FINDERS,
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
"gadjo.finders.XStaticFinder",
)
There is a CDNS settings, that can contain a list of (cdn name, protocol)
tuples; for example:
CDNS = [('google', 'https')]
Usage
=====
Make your application base template {% extends "gadjo/base.html" %}.
Additional static files libraries can be added via INSTALLED_APPS,
for example 'xstatic.pkg.jquery_tablesorter'; its static files can
then be referred in a template using the xstatic template tag:
{% xstatic 'jquery_tablesorter' 'jquery.tablesorter.js' %}