Base templates for management interfaces
Go to file
Frédéric Péters c51304bc27 README: mention global_settings.STATICFILES_FINDERS 2014-09-04 10:31:53 +02:00
gadjo apply a fallback background colour to header (#5362) 2014-09-01 14:37:27 +02:00
.gitignore basic ignore file 2014-03-23 22:07:23 +01:00
AUTHORS initial commit with authors and license 2014-03-23 21:32:17 +01:00
COPYING initial commit with authors and license 2014-03-23 21:32:17 +01:00
MANIFEST.in static js files included 2014-04-28 17:22:09 +02:00
README.txt README: mention global_settings.STATICFILES_FINDERS 2014-09-04 10:31:53 +02:00
setup.py Use xstatic packages instead of shipping common libraries copies (#5181) 2014-08-21 13:54:44 +02:00

README.txt

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' %}