Jmbo foundry behaviour/templates app.
Jmbo foundry behavior/templates app.
Install or add jmbo-foundry to your Python path.
Install django-preferences as described here.
Add foundry to your INSTALLED_APPS setting.
Add foundry URL include to your project’s urls.py file:
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.
You have to add TypeLoader as the first loader for it to resolve templates correctly.
jmbo-foundry includes static media resources which you need to configure as described in Django`s managing static files documentation.
Add foundry.middleware.AgeGateway to your MIDDLEWARES setting after AuthenticationMiddleware.
Optionally add foundry.middleware.VerboseRequestMeta to your MIDDLEWARES setting as the last entry. It adds more information to the request for easier debugging.
A short descriptive title for link.
Returns URL to which link should redirect based on a reversed view name as specified in view_name field or category view for category specified in category field or otherwise an explicitly provided URL as specified in url field.
Determines whether or not the link can be consider active based on the request path. True if the request path can be resolved to the same view name as is contained in view_name field. Otherwise True if request path starts with URL as resolved for category contained in category field. Otherwise True if request path starts with URL as contained in url field.
- Add a base_inner.html template so it is easier to override base.html.
- Patch listdir so collectstatic does not fail on custom layers for third party foundry-based products.
- Use Jaro Winkler for matching naughty words.
- Detail view.
- Element preferences.
- Initial release.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|jmbo_foundry-0.2-py2.6.egg (654.8 kB) Copy SHA256 hash SHA256||Egg||2.6|
|jmbo-foundry-0.2.tar.gz (422.8 kB) Copy SHA256 hash SHA256||Source||None|