Re: Define middleware per app?

2017-08-03 Thread Robert Stepanek
Ah, I knew I had just overseen a simple solution, being a Django noob! Thanks for this. On Thursday, August 3, 2017 at 11:14:58 AM UTC+2, Jani Tiainen wrote: > > Well of course you can just have two set of settings (derive common stuff). > > So you don't need fully separated projects. If you

Re: Define middleware per app?

2017-08-03 Thread Jani Tiainen
Well of course you can just have two set of settings (derive common stuff). So you don't need fully separated projects. If you don't want to. 3.8.2017 11.27 "Robert Stepanek" kirjoitti: > Hi, > > On Wednesday, August 2, 2017 at 8:31:14 PM UTC+2, Jani Tiainen wrote:

Re: Define middleware per app?

2017-08-03 Thread Robert Stepanek
Hi, On Wednesday, August 2, 2017 at 8:31:14 PM UTC+2, Jani Tiainen wrote: > > Hi, > > What is the problem that your’e trying to resolve with middlewares and why > you think that you can’t use defaults as is? > > For example: the default middleware stack includes session management, CSRF

Re: Define middleware per app?

2017-08-02 Thread Jani Tiainen
Hi, What is the problem that your’e trying to resolve with middlewares and why you think that you can’t use defaults as is? > On 2 Aug 2017, at 14.59, Robert Stepanek wrote: > > I am new to Django and my project consists of two apps: a typical blog-style > web

Define middleware per app?

2017-08-02 Thread Robert Stepanek
I am new to Django and my project consists of two apps: a typical blog-style web site app and an API app. For the latter, I do not need the majority of middleware that is configured by default. Yet, I can't figure out what's the best approach to use the default middleware stack for the web