middleware or context_processors

2007-07-26 Thread james_027
Hi all, As I am trying to extend the django user model not using the auth_profile I have model like this class Profile(models.Model): """KSK Employee accounts to use this application""" user = models.ForeignKey(User, unique=True) department = models.CharField(maxlength=3,

Re: using middleware vs. context_processors: best practice?

2007-07-14 Thread Jeremy Dunck
On 7/14/07, Amit Ramon <[EMAIL PROTECTED]> wrote: > 1. The language must be set before creating the menu (so the menu will be in > the correct language). I assume that middleware gets called before context > processors. Am I right here? Yes. > 2. I noticed that the middleware is called for

using middleware vs. context_processors: best practice?

2007-07-14 Thread Amit Ramon
Hello, I'm working in a multilingual site, for which I have the following two requirements: 1. The language to use for content and ui is derived from the url. 2. All pages (rendered by different views) have a "constant" part - menu, title, etc. The menu is stored in the database (it's simply