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)
Built Distribution
Close
Hashes for django_storybook-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c5acadbe22d3704542e1b9ce0d768040d0142007e0f091ec255673b743f1c51 |
|
MD5 | 57c2938833ab479ed79c9a486ddc886d |
|
BLAKE2b-256 | 9c44e02ecfa4ca2a1c0b73fee35ff02613f440d15983ab47690a0e264be377b2 |