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

Django components experiments #5031

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

mlissner
Copy link
Member

@mlissner mlissner commented Feb 2, 2025

I wanted to play around with django-components a bit and see how they worked. This PR is a bare-bones example of doing that.

  • It has two little components: A calendar and an H1.
  • Gotchas to fix/consider:
    • Putting things in cl.components doesn't work for some reason.
    • When you add a new component or change it, you need to manually restart the django container. That's annoying and feels like a blocker.
    • HTML is not understood as HTML when it's in triple quotes in a python file.

A next step here is to convert the documentation page to use components, then to style those components using tailwind. I think there's a way to export the design mock-ups from figma to tailwind, but I don't currently know how.

But hopefully this is a place to start, and I hope we can use it to get the root help page figured out as a first step.

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

Successfully merging this pull request may close these issues.

1 participant