Skip to content

globophobe/django-semantic-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Semantic UI forms

Django forms with Semantic UI style. Semantic UI forms may be used both with django-semantic-admin, as well as outside the admin.

Why?

  • JavaScript datepicker and timepicker components.
  • JavaScript selects, including multiple selections, which integrate well with Django autocomplete fields.
  • Semantic UI has libraries for React and Vue, in addition to jQuery. This means you can save time by using django-semantic-forms for simple forms, and use React or Vue for more complex use cases.

Install

Install from PyPI:

pip install django-semantic-forms

Add to settings.py:

INSTALLED_APPS = [
    "semantic_forms",
    ...
]

Please remember to run python manage.py collectstatic for production deployments.

This package uses Fomantic UI the official community fork of Semantic UI. Please add the Fomantic UI dependencies to your Django template.

For example:

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.8/dist/semantic.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.8/dist/semantic.min.js"></script>