On Aug 17, 2:36 am, Tang Daogang <daogangt...@gmail.com> wrote: > Dear all, > > I have developed a CMS, which containing a dynamic menu. Because menu > should be displayed on every page of my site, I need to write the menu > variable into every view function against every page template, this is > very boring... > > So is there some method to implement applying custom variable into > django template automatically? I find some materials, may be > RequestContext can handle it, but I don't know how to insert my custom > variable into it? > > Anyone can help? > > Thank you!
Context processors: http://docs.djangoproject.com/en/1.2/ref/templates/api/#subclassing-context-requestcontext -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.