django-semanticui-form

来源:互联网 时间:1970-01-01

I'm working on a (side)project in Django that uses the awesome Semantic UICSS 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-formand 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 .cssfile) but generally you just pick the components you want/need. To use it in your Django templates simply, create a django.forms.Forminstance 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.


相关阅读:
Top