Package: django2-semantic-ui
Django Semantic UIEasy python package that allow install, configure and use Semantic UI Framework with a Django project (Python 3.x).Requirementsnpm (last stable version)Python 3.6.xDjango 2.x.xInstallingInstall gulp (CLI), the version 3.9.1 is the available to work with Semantic UI Framework.$sudonpminstall-ggulp@3.9.1Install the django2-semantic-ui package:$pipinstalldjango2-semantic-uiConfigure django2-semantic-ui in the settings.py:INSTALLED_APPS=[...,'django_semantic_ui',]Running the install command$pythonmanage.pysemantic_uiinstallNOTE:You need to define the settings required to install semantic-ui module, see:Install SemanticYou can use the follow options when the semantic-ui module is configured:❯Automatic(Usedefaultlocationsandallcomponents)?WedetectedyouareusingNPMNice!Isthisyourprojectfolder?/home/franklinitiel/Documents/TSJ/projects/personal/python_tests/semanticui/static(Usearrowkeys)❯Yes

?WhereshouldweputSemanticUIinsideyourproject?(semantic/)semanticRunning the gulp build command$pythonmanage.pysemantic_uigulp_buildAdd 'django.template.context_processors.static' to context_processors option on the TEMPLATES settings# settings.py# TEMPLATES settings'context_processors':[...,'django.template.context_processors.static',...,]Configure the static files and folder, see:Managing static filesSTATIC_URL='/static/'Add CSS and JS to your django project{% load dsu %}<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>Semantic UI Test</title>{% dsu_stylesheet_url %}</head><body><!-- Your HTML code -->{% dsu_jquery_url %}
    {% dsu_javascript_url %}</body></html>Settings Production environmentConfigure the static files and folder, see:Managing static filesSTATIC_URL='/static/'STATIC_ROOT=os.path.join(BASE_DIR,'static')And execute the collectstatic command$pythonmanage.pycollectstaticAdditional settingsGULP_VERSION by default is None, if you want to install a specific version of gulp module (local), you can use this settings, by example:# settings.pyGULP_VERSION='3.9.1'SEMANTIC_UI_VERSION by default is None, if you want to install a specific version of semantic-ui module (local), you can use this settings, by example:# settings.pySEMANTIC_UI_VERSION='^2.4.2'SEMANTIC_DIRNAME by default is 'semantic'', if you have defined a custom dirname for the JS and CSS files when the Semantic UI Framework was installed (step 4), you need to add it on this settings.# settings.pySEMANTIC_DIRNAME='semantic'DSU_JQUERY_URL by default is 'https://code.jquery.com/jquery-3.1.1.min.js', if you have defined a custom path to you jquery, so, you can use this template tag.# settings.pyDSU_JQUERY_URL='...your jquery path...'Uninstall django-semantic-uiYou can uninstall Semantic UI Framework and Gulp (local version) using the follow command:$pythonmanage.pysemantic_uiuninstall&&pipuninstalldjango2-semantic-uiReleases notes:1.0.0: Initial and beta version (only installation and settings).1.0.1: New settings added on the README.md file1.1.0: Logic updated to install / uninstall django-semantic-ui, new settings added.1.1.1: README.md updated1.1.2: README.md updated1.2.0: New templatetags added to load the javascripts and stylesheets files1.2.1: README.md updated, bugs fixed to execute the command "python manage.py runserver" after installed.1.2.2: Bug fixes execute the command "pytho manage.py runserver"