{ "info": { "author": "Franklin Sarmiento", "author_email": "franklinitiel@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.6" ], "description": "# Django Semantic UI\nEasy python package that allow install, configure and use Semantic UI Framework with a Django project (Python 3.x).\n\n### Requirements\n- npm (last stable version)\n- Python 3.6.x\n- Django 2.x.x\n\n## Installing\n1) Install gulp (CLI), the version 3.9.1 is the available to work with Semantic UI Framework.\n```shell\n$ sudo npm install -g gulp@3.9.1\n```\n\n2) Install the django2-semantic-ui package:\n```shell\n$ pip install django2-semantic-ui\n```\n\n3) Configure django2-semantic-ui in the settings.py:\n```python\nINSTALLED_APPS = [\n ...,\n 'django_semantic_ui',\n]\n```\n\n4) Running the install command\n```shell\n$ python manage.py semantic_ui install\n```\n**NOTE:** You need to define the settings required to install semantic-ui module, see: [Install Semantic](https://semantic-ui.com/introduction/getting-started.html)\n- You can use the follow options when the semantic-ui module is configured:\n```shell\n\u276f Automatic (Use default locations and all components)\n\n? We detected you are using NPM Nice! Is this your project folder? /home/franklinitiel/Documents/TSJ/projects/personal/python_tests/semanticui/static (Use arrow keys)\n\u276f Yes\n\n? Where should we put Semantic UI inside your project? (semantic/) semantic\n```\n\n5) Running the gulp build command\n```shell\n$ python manage.py semantic_ui gulp_build\n```\n\n6) Add 'django.template.context_processors.static' to context_processors option on the TEMPLATES settings\n```python\n# settings.py\n# TEMPLATES settings\n'context_processors': [\n ...,\n 'django.template.context_processors.static',\n ...,\n]\n```\n\n7) Configure the static files and folder, see: [Managing static files](https://docs.djangoproject.com/en/2.1/howto/static-files/)\n```python\nSTATIC_URL = '/static/'\n```\n\n8) Add CSS and JS to your django project\n```html\n{% load dsu %}\n\n\n
\n \n