Python Forum
Working on an Auction Site - had questions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working on an Auction Site - had questions
#21
Thank you! That was very helpful!!!
Reply
#22
(Sep-08-2020, 05:43 AM)card51shor Wrote: I tried .values object.values i tried brackets and paraenthesis.

I can't find it anywhere online.

(Sep-08-2020, 07:13 AM)card51shor Wrote: i cant' find it in that link either.

I really don't know why this is so complicated for you. On the page I linked to, as I mentioned, there's a page on the template system ("Use the template system"). On it, it does give an example of using the dot operator to access attribute values, which is also what nilamo shows in their first snippet. I don't know where you'd get .values from, since your model class has no attribute called values.
Reply
#23
where on that page does it show me to use what nilamo said to use:

{{% for query in queries %}
<p>{{ query.title }} - {{ query.description }} - {{ query.price }} - {{ query.category }}<p>
{% endfor %}

why couldn't u just simply explain it like nilamo did? Now I totally get it.

Instead of you sending me 15 pages to read and saying it's in there somewhere - which it isn't.
Reply
#24
why do you expect to spoon-feed you?
Looking at link by @ndc85430 and the TOC, there is Template section and Django template language and immediately
Quote:Dictionary lookup, attribute lookup and list-index lookups are implemented with a dot notation:
{{ my_dict.key }}
{{ my_object.attribute }}
{{ my_list.0 }}
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#25
that isn't what I was asking about at all. just step away. You don't know what you're talking about.

I know you were eager to chide someone (not so eager to offer any assitance, of course) but no one wants your snidey "help".

The other guy helped me more than you ever could have.

You posted some nonsense that was irrelevant to what I'm talking about.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020