如何在Django中实现Northwind [英] how to implement Northwind in Django

查看:197
本文介绍了如何在Django中实现Northwind的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Django-admin在MySQL中实现Northwind数据库模型来显示数据。有人知道如何从原模型干净的方式吗?是否有任何功能实现下载(模型,管理员)?

解决方案

完全未经过审查的程序如下。不清楚你的意思是干净的。这是互联网上的一些可能有帮助的事情:



步骤1 - 从Access访问MySQL导出:



http://www.geeksengine.com/article/export-access-to-mysql- 4.html



步骤2 - 在数据库中点django,并使用inspectdb创建models.py



https://docs.djangoproject.com/en/dev/ref/django- admin /#inspectdb



步骤3 - 清理models.py,运行syncdb,将其添加到管理员,看看你要去哪里。

步骤4 - 问这个人是否管理过它:



http://ifdebug.com/django-northwind-coming-soon/ - 他已经四年了!


I am trying to implement Northwind database model in MySQL using Django-admin for displaying data. Does someone know how to do it "clean" way from original model? Is there any functional implementation to download (models, admin)?

解决方案

Totally untried procedure follows. Not sure what you mean by 'clean'. Here's a few things on the internet that might help:

Step 1 - export from Access to MySQL:

http://www.geeksengine.com/article/export-access-to-mysql-4.html

Step 2 - point django at the database and use inspectdb to create models.py

https://docs.djangoproject.com/en/dev/ref/django-admin/#inspectdb

Step 3 - clean up models.py, run syncdb, add it to the admin, see what you go.

Step 4 - ask this guy if he ever managed it:

http://ifdebug.com/django-northwind-coming-soon/ - he's had four years!

这篇关于如何在Django中实现Northwind的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆