14 September 2015   2 comments   Python, Django

Powered by Fusion×

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 %}

  {{ myform | semanticui }}

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.


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.
Thank you for posting a comment

Your email will never ever be published

Related posts

peepin - a great companion to peep 10 September 2015
ElasticSearch, snowball analyzer and stop words 25 September 2015
Related by Keyword:
Ultrafast loading of CSS 01 September 2017
Web Performance Optimization of a Single-Page-App and web fonts 16 March 2017
CSS Bloat Comparison 03 June 2016
How to no-mincss links with django-pipeline 03 February 2016 08 July 2015
Related by Text:
How to no-mincss links with django-pipeline 03 February 2016
CSS Bloat Comparison 03 June 2016
Ultrafast loading of CSS 01 September 2017
Django vs. Java 25 October 2008
This site is now 100% inline CSS and no bytes are wasted 05 March 2013