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:

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!


É "",


in a template: {{ }}

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