Configurations¶
Install¶
django-webix
is available on https://pypi.python.org/pypi/django-webix/
install it simply with:
$ pip install django-webix
Configure¶
Settings¶
Add django_webix
to your INSTALLED_APPS
INSTALLED_APPS = [
# ...
'django_webix',
# ...
]
Add django-webix
URLconf to your project urls.py
file
from django.conf.urls import url, include
urlpatterns = [
# ...
url(r'^django-webix/', include('django_webix.urls')),
# ...
]
Add internationalization to TEMPLATES
TEMPLATES = [
{
# ...
'OPTIONS': {
'context_processors': [
# ...
'django.template.context_processors.i18n',
],
},
},
]
Include webix static files
folder in your django staticfiles folder as webix
and add static configuration
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'staticfiles'),
)
STATIC_URL = '/static/'
Configuration variables
WEBIX_LICENSE = 'PRO' # FREE
WEBIX_VERSION = '7.0.3'
WEBIX_CONTAINER_ID = 'content_right'
WEBIX_FONTAWESOME_CSS_URL = 'fontawesome/css/all.min.css'
WEBIX_FONTAWESOME_VERSION = '5.12.0'
WEBIX_HISTORY_ENABLE = True # optional