On 8/21/06, Thomas <[EMAIL PROTECTED]> wrote: > I seem to be > calling / using the "c = Context({" too many times. Is this the best > way of doing things? An example would be something like displaying the > First name and Last name of a user that is logged in accross all my > pages. Take a look below: >
Perhaps you could create a custom middelware which adds those variables to the context. You'd probaly want to use a process_responce middleware[1]. Sure beats repeating the code in every view. http://www.djangoproject.com/documentation/middleware/#process-response -- ---- Waylan Limberg [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---