Monday, April 1, 2019

Re: I Am A Begginer Web Developer - Need Help With Finding A Term

Just query the data maybe by filtering and set the results in different variables, then pass them and you can get different data in one template.
for querying you can see the document

 
hope it helps


Rok Klancar於 2019年4月2日星期二 UTC+8上午9時22分59秒寫道:
Hello developers!

Much respect to you all.

I have just finished a couple of hours browsing the web, but found no solution. I guess my problem is simply not knowing the right term for the thing that I am trying to make (in Django of course).

Brief description:
I have made a class 'Post' in models.py that represents four different kind of data:
  • Date
  • Int
  • Text 1
  • Text 2
It is sort of like a blog post. Now, in the official Django tutorial I have learned how to make posts appear on separate pages.
But I want the different instances of this class 'Post' appear one under another on a single page (Today's post is on top, yesterday's is bellow the today's, etc.).

I hope I made my issue clear.
I would be happy, just if you told me, how do you call this shape of a page in Web Dev jargon.

Have a nice day
Rok

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/d572f625-015e-4a32-87b3-b3105477591a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment