Skip to main content

Jmbo foundry behaviour/templates app.

Project description

Jmbo Foundry

Jmbo foundry behavior/templates app.

Installation

  1. 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.

  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.

Models

foundry.models.LinkPosition

Used to determine position/order of elements in {% menu %} and {% navbar %} inclusion tags.

Fields

position

Specifies position/order of link in {% menu %} and {% navbar %} inclusion tags.

Inclusion Tags

foundry.templatetags.foundry_inclusion_tags

Provides foundry inclusion tags like {% menu %} and {% navbar %}. Load these tags by including {% load foundry_inclusion_tags %} in your templates.

Authors

Praekelt Foundation

  • Shaun Sephton

  • Hedley Roos

  • Euan Jonker

  • Rizmari Versfeld

Changelog

0.2

  1. Add a base_inner.html template so it is easier to override base.html.

  2. Patch listdir so collectstatic does not fail on custom layers for third party foundry-based products.

0.1

  1. Use Jaro Winkler for matching naughty words.

0.0.2 (2011-09-27)

  1. Detail view.

  2. Element preferences.

0.0.1 (2011-09-21)

  1. Initial release.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jmbo-foundry-0.2.tar.gz (422.8 kB view hashes)

Uploaded Source

Built Distribution

jmbo_foundry-0.2-py2.6.egg (654.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page