Django的模型数据导出
django-data-exports的Python项目详细描述
安装
pip install django-data-exports
然后添加到项目的 已安装的应用程序中。在 设置中。py :
INSTALLED_APPS = ( '...', # whatever you already have '...', 'data_exports', )
安装型号:
./manage.py syncdb # or ./manage.py migrate if you're using south
最后,将url插入到根urlconf
urlpatterns = patterns( '', # ... all the other urls you already have # exports url(r'^exports/', include('data_exports.urls', namespace='data_exports')), )