Base templates for management interfaces
Go to file
Frédéric Péters f3516d1c1d Use xstatic packages instead of shipping common libraries copies (#5181) 2014-08-21 13:54:44 +02:00
gadjo Use xstatic packages instead of shipping common libraries copies (#5181) 2014-08-21 13:54:44 +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 Use xstatic packages instead of shipping common libraries copies (#5181) 2014-08-21 13:54:44 +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,

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