Hi Rok,
I suppose you want to *list* all your posts :) List is where you display
many instances on one page (and your url is e.g. `.../classes/`).
And as you probably already know, if you want to retrieve just one post (or
class, or whatever you call it), you need a detail view, and the url wil
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
https://docs.djangoproject.com/en/2.1/topics/db/queries/
hope it helps
Rok Klancar於 2019年4月2日星期二 UTC+8上午9時22分
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 *m
3 matches
Mail list logo