Skip to main content

A Django module integrating Storybook pattern library and Django

Project description

django-storybook

A Django module to intergrate the Storybook pattern library and django

Config

Settings.dev

Please note django_storybook disables CSRF protection to allow for local development using Docker. This should not be used in production.

    # Enable django_storybook
    CORS_ORIGIN_ALLOW_ALL = True
    CORS_ALLOW_HEADERS = default_headers + ("Access-Control-Allow-Origin", "csrftoken")

URLs

Add the following to your debug urls:

    if settings.debug:
            urlpatterns += url(r"", include(django_storybook_urls)),

Deployment

Due to disabling CSRF django_storybook is not safe for production. However, deploying a static storybook using storybook deployer is a good alternative.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_storybook-0.1.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

django_storybook-0.1.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page