InstallationΒΆ

To start using Waffle, you just need to add it to your INSTALLED_APPS and MIDDLEWARE_CLASSES, and make sure to add the request context processor:

TEMPLATE_CONTEXT_PROCESSORS = (
    # ...
    'django.core.context_processors.request',
    # ...
)

INSTALLED_APPS = (
    # ...
    'waffle',
    # ...
)

MIDDLEWARE_CLASSES = (
    # ...
    'waffle.middleware.WaffleMiddleware',
    # ...
)

Since Waffle will be setting cookies on response objects, you probably want it below any middleware that tweaks cookies before sending them out.

Project Versions

Previous topic

django-waffle

Next topic

Using django-waffle

This Page