InstallationΒΆ

To start using Waffle, you 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.

If you’re using South, you can run manage.py migrate to create the necessary tables. If not, you’ll need to create and run the schema migrations however you handle that.

Previous topic

Waffle

Next topic

Flags, Switches and Samples

This Page