django-semanticui-form

14 September 2015   2 comments   Python, Django

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

Mind That Age!

This blog post is 4 years old! Most likely, its content is outdated. Especially if it's technical.

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

Related posts

Previous:
peepin - a great companion to peep 10 September 2015
Next:
ElasticSearch, snowball analyzer and stop words 25 September 2015
Related by Keyword:
Optimize DOM selector lookups by pre-warming by selectors' parents 11 February 2019
csso and django-pipeline 28 February 2018
CSS selector simplifier regular expression in JavaScript 20 December 2017
Ultrafast loading of CSS 01 September 2017
Web Performance Optimization of a Single-Page-App and web fonts 16 March 2017