URL: https://github.com/peterbe/django-semanticui-form

I'm working on a (side)project in Django that uses the awesome Semantic UI CSS framework. This project has some Django forms that are rendered on the server and so I can't let Django render the form HTML or else the CSS framework can't do its magic.

The project is called django-semanticui-form and it's a fork from django-bootstrap-form.

It doesn't come with the Semantic UI CSS files at all. That's up to you. Semantic UI is available as a big fat bundle (i.e. one big .css file) but generally you just pick the components you want/need. To use it in your Django templates simply, create a django.forms.Form instance and render it like this:


{% load semanticui %}

<form>
  {{ myform | semanticui }}
</form>

The project is very quickly put together. The elements I intend to render seem to work but you might find that certain input elements don't work as nicely. However, if you want to help on the project, it's really easy to write tests and run tests. And Travis and automatic PyPI deployment is all set up so pull requests should be easy.

Comments

Moe

Thanks! What's the current status of the project? Is it still active and is it complete?

Peter Bengtsson

I think it still is, yes. It might need some upgrading though. Especially in terms of testing newer versions of Django and Python.

Your email will never ever be published.

Previous:
peepin - a great companion to peep September 10, 2015 Python
Next:
ElasticSearch, snowball analyzer and stop words September 25, 2015 Python
Related by category:
How I run standalone Python in 2025 January 14, 2025 Python
get in JavaScript is the same as property in Python February 13, 2025 Python
How to resolve a git conflict in poetry.lock February 7, 2020 Python
Best practice with retries with requests April 19, 2017 Python
Related by keyword:
Premailer.io July 8, 2015 Python, Web development, AngularJS, JavaScript
mincss "Clears the junk out of your CSS" January 21, 2013 Python, Web development
CSS selector simplifier regular expression in JavaScript December 20, 2017 Web development, JavaScript
Ultrafast loading of CSS September 1, 2017 Web development, JavaScript