typeahead.js符合django staticfiles
django-staticfiles-typeaheadjs的Python项目详细描述
typeahead.js与django staticfiles会面
用法
此应用程序应与django-staticfiles一起使用。确保 静态文件安装并配置,然后使用 pip:
pip install django-staticfiles-typeaheadjs
最后,确保typeaheadjs列在您的INSTALLED_APPS中。你 也可以使用此OneLiner添加它:
INSTALLED_APPS += ['typeaheadjs', ]
构建
typeahead.js使用Grunt来构建和缩小javascript。你需要 按照vendor/typeahead.js/README.md中的说明设置 构建环境,然后运行python support/build.py更新django 应用有关数据的详细信息,请参见support/build.py 从子模块传输到python包。