django-bakery icon indicating copy to clipboard operation
django-bakery copied to clipboard

Bakery doesn't run `MIDDLEWARE_CLASSES`/`MIDDLEWARES` on build

Open Rafalonso opened this issue 7 years ago • 3 comments

How can I make this happen? I'm using BuildableTemplateView.

Django 1.8 django-bakery 0.12.6

Rafalonso avatar Oct 29 '18 08:10 Rafalonso

Can you tell me more about your bug?

palewire avatar Dec 05 '18 03:12 palewire

I don't believe this is a bug but a feature. Even though it does run TEMPLATE_CONTEXT_PROCESSORS as desired, it does not run MIDDLEWARES. Makes sense since middlewares handle dynamic requests. Would be nice though to force bakery to run them with a flag.

Rafalonso avatar Dec 05 '18 10:12 Rafalonso

What's the use case for needing the middleware?

palewire avatar Dec 05 '18 14:12 palewire