jmbo-foundry

Jmbo foundry behaviour/templates app.
Download

jmbo-foundry Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Praekelt Foundation
  • Publisher web site:
  • http://praekelt.com

jmbo-foundry Tags


jmbo-foundry Description

jmbo-foundry is a foundry behaviour/templates app for Jmbo.Installation1. Install or add jmbo-foundry to your Python path.2. Install django-preferences as described here.3. Add foundry to your INSTALLED_APPS setting.4. Add foundry URL include to your project's urls.py file: (r'^', include('foundry.urls')),5. jmbo-foundry includes a number of template sets allowing you to deliver lightweight(zero), mobile(basic) or desktop/touch(full) specific output. Specifying which template set to use is simply a matter of specifying a TEMPLATE_TYPE setting, and adding foundry.loaders.TypeLoader to the TEMPLATE_LOADERS setting. For example to use the basic template set update your settings as follows: TEMPLATE_TYPE = "basic" TEMPLATE_LOADERS = ( 'foundry.loaders.TypeLoader', ...other template loader classes... ) This causes templates to be loaded from a path prefixed with whatever value was specified as the TEMPLATE_TYPE setting. For example in this case a template specified as foundry/home.html would actually be loaded from basic/foundry/home.html. Note: You have to add TypeLoader as the first loader for it to resolve templates correctly.6. jmbo-foundry includes static media resources which you need to configure as described in Django`s managing static files documentation.7. Add foundry.middleware.AgeGateway to your MIDDLEWARES setting after AuthenticationMiddleware.8. Optionally add foundry.middleware.VerboseRequestMeta to your MIDDLEWARES setting as the last entry. It adds more information to the request for easier debugging.Product's homepage


jmbo-foundry Related Software