Re: Where is the data set of the Django documents demo models

2019-02-03 Thread Jason
I'm not sure what you mean? if you're referring to the way querysets and the ORM operate, there's a thorough section in the docs. but if you're asking how to model data and use a db, that's out of the scope of django as a whole. -- You received this message because you are subscribed to the

Re: Where is the data set of the Django documents demo models

2019-02-03 Thread Fogmoon
Sorry for I just list the section but did not emphasize the relative topic: DB relative operation. 在 2019年2月3日星期日 UTC+8下午9:50:18,Jason写道: > > I feel I have to disagree, and the reason is the point of the tutorial is > to show you the basics with the various parts of django, and you're > creati

Re: Where is the data set of the Django documents demo models

2019-02-03 Thread Joel Mathew
Yes, it is not supposed to be a copy paste demo. You're supposed to work along the tutorial, use the shell, and not throw in a bunch of files and opening the browser to see if it works On Sun, 3 Feb, 2019, 7:20 PM Jason I feel I have to disagree, and the reason is the point of the tutorial is > t

Re: Where is the data set of the Django documents demo models

2019-02-03 Thread Jason
I feel I have to disagree, and the reason is the point of the tutorial is to show you the basics with the various parts of django, and you're creating a data set as you go along. https://docs.djangoproject.com/en/2.1/intro/tutorial02/#playing-with-the-api shows you how to use the ORM to create

Re: Where is the data set of the Django documents demo models

2019-02-03 Thread Fogmoon
Thanks for your answer and advice. BTW, I think the data set should be somewhere because the demo is based on the data set. Maybe on the document author's computer. I just think provided the data set with the document will be more helpful for Django new users. So hope the author or others can

Re: Where is the data set of the Django documents demo models

2019-02-02 Thread Jason
you would have to make your own data set for that, or try googling around. the demo is just to show how to make a django project, and doesn't contain any data. one option for making your own is using factory boy or model mommy projects to generate realistic randomized data. -- You received t

Where is the data set of the Django documents demo models

2019-02-02 Thread Fogmoon
Hi, I read Models and databases section in the Django documents. I want to test the statement in the demos, but I can not find the data set of these demo models. Also other demos I meet the same issue, I can not test the statement