1. tehfink
  2. cms-context_processors


cms-context_processors /

Filename Size Date modified Message
134 B
255 B
1.0 KB
1.2 KB


Name: cms-context_processors Description: for django-cms. defines various context processors for inclusion in apps attached to django-cms pages; initially created because because 'sites' was not being passed to photologue template contexts for some reason Download: http://bitbucket.org/tehfink/cms-context_processors/

Requirements: - django-cms-2: 2.0.2 - django: 1.1.1

Setup - this release is only compatible with django-cms 2.0.2 - make sure requirements are installed and properly working - add cms_context_processors to python path - add "cms_context_processors.context_processors.XXX" to INSTALLED_APPS, where XXX is the processor you want (at the moment there is only one: 'sites') - reference context processor in views/contexts as necessary

Todo: - add more context processors!



É "cms_context_processors.context_processors.site",


in a template: {{ site.name }}

Note: This is not great code, but it works. Please tell me how to make it better!