Where is the data set of the Django documents demo models

28 views
Skip to first unread message

Fogmoon

unread,
Feb 2, 2019, 8:15:27 AM2/2/19
to Django users
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 which really affect I understand the demo and learn the topic.

So where I can find the demo data set which I can import my database and test the demos myself?

Please help me, Thanks very much.

Fogmoon.

Jason

unread,
Feb 2, 2019, 8:34:12 AM2/2/19
to Django users
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.

Fogmoon

unread,
Feb 3, 2019, 5:03:07 AM2/3/19
to Django users
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 attach the data set with the demo. 


在 2019年2月2日星期六 UTC+8下午9:34:12,Jason写道:

Jason

unread,
Feb 3, 2019, 8:50:18 AM2/3/19
to Django users
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 a new question
https://docs.djangoproject.com/en/2.1/intro/tutorial03/#writing-your-first-django-app-part-3 shows you how to make templates to list questions and show a specific question

That's all from data you're creating in the second step.

What do you feel you would get from having a data set provided as an example over the process above?

Joel Mathew

unread,
Feb 3, 2019, 9:46:45 AM2/3/19
to django...@googlegroups.com
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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b749246d-1ce0-40ba-9b8f-31ce222c8ef7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fogmoon

unread,
Feb 3, 2019, 10:53:19 AM2/3/19
to Django users
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写道:

Jason

unread,
Feb 3, 2019, 10:58:23 AM2/3/19
to Django users
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.
Reply all
Reply to author
Forward
0 new messages