Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you describe your actual solution with Django? #2

Open
airtonix opened this issue Oct 25, 2019 · 1 comment
Open

Can you describe your actual solution with Django? #2

airtonix opened this issue Oct 25, 2019 · 1 comment

Comments

@airtonix
Copy link

airtonix commented Oct 25, 2019

https://github.com/cloudratha/djanjucks#why-does-this-exist

You talk about using this with storybook.
Then you talk about doing something else?

I'm in the same position. Our backend is Django, our frontend is a mixture of Scss, React and Plain Javascript.

I'd really like to be writing storybook stories that just render our django templates properly.
how are you doing this?

I think what would be useful is :

  • example code of the webpack loader you used
  • your eventual solution of running django to render templates directly
@cloudratha
Copy link
Owner

Hey,
I don't even know how i missed this comment. Sorry about that.

A lot of the pitfalls of this library is that it only knows the standard template tags. It will fail when using 3rd party extensions. Often requiring you to create custom filters or tags to support the template. Honestly this became too much overhead to maintain in the project I built this for, which defeats its usefulness.

On top of that, the developer experience for writing custom tags is not ideal (thanks to Nunjucks).

With all the above in mind if you want me to lookup the loader and storybook samples I can do that, but I'm sure you have already found alternative solutions.

PS. I see torchbox have done some work here: https://github.com/torchbox/storybook-django

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants