27 lines
713 B
Plaintext
27 lines
713 B
Plaintext
Configuration
|
|
=============
|
|
|
|
You should add gadjo.finders.XStaticFinder to STATICFILES_FINDERS,
|
|
|
|
from django.conf import global_settings
|
|
|
|
STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + \
|
|
('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' %}
|