没有项目描述
django-webix的Python项目详细描述
在django中使用Webixjavascript ui库
文档
快速启动
安装django webix:
$ pip install django-webix
将django-webix添加到INSTALLED_APPS
INSTALLED_APPS=[# ...'django_webix',# ...]
将django-webixurlconf添加到项目urls.pyfile中
fromdjango.conf.urlsimporturl,includeurlpatterns=[# ...url(r'^django-webix/',include('django_webix.urls')),# ...]
将国际化添加到模板中
将django staticfiles文件夹中的webix static files文件夹包含为webix,并添加静态配置TEMPLATES=[{# ...'OPTIONS':{'context_processors':[# ...'django.template.context_processors.i18n',],},},]
STATICFILES_FINDERS=('django.contrib.staticfiles.finders.FileSystemFinder','django.contrib.staticfiles.finders.AppDirectoriesFinder',)STATICFILES_DIRS=(os.path.join(BASE_DIR,'staticfiles'),)STATIC_URL='/static/'
运行测试
代码真的有用吗?
$ source <YOURVIRTUALENV>/bin/activate $ (myenv) $ pip install tox $ (myenv) $ tox