Commits

tehfink committed 37825b9

updated readme

  • Participants
  • Parent commits 717189b

Comments (0)

Files changed (1)

-PRE-ALPHA
+ALPHA
+
 
 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.0: rev 63a124cfda6c10b9f4831da0627a9f80b64e675c
-- django: 1.1
+- django-cms-2: 2.0.2
+- django: 1.1.1
 
-Last tested with:
-- django-cms-2.0: rev 63a124cfda6c10b9f4831da0627a9f80b64e675c
-- django: rev 11600
 
 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!
 
 
 Examples:
 
+settings.py:
 TEMPLATE_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!