Hi everyone,
I've unfortunately hit another brick wall with my Django app. I have my
list of card objects, and when one of them is clicked, I'd like a new page
to open that contains the details for the card that was clicked. I found
out how to create a URL using {{ card.id }}:
{% for card in
Thanks for the reply Melvyn - I'm slowly getting there!
So, I now understand how to insert the unique object reference. After
creating card.html, and defining card in views, my list element URL is:
{% for card in cards.all %}
{{ card.title
}}
{% endfor %}
And if I click on the second
On woensdag 14 februari 2018 16:14:40 CET Lylio wrote:
> I'd like to click on one of the items in the list and open up a new page
> showing all the database details for that particular list item (title,
> description, time of creation, etc). Roughly, would I change the list items
> into links:
>
in that section.
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Lylio
Sent: Wednesday, February 14, 2018 9:15 AM
To: Django users
Subject: Re: Basic note/trello app - how to link model object IDs
Thanks for the reply Gonzalo, I really appreciate the feedback.
So
Thanks for the reply Gonzalo, I really appreciate the feedback.
So, conceptually I understand how the remaining pieces of this app fit
together - but could I ask for just a little more of your help as I'm
struggling with coding the details of what's needed.
Let's start basic - I've got some
Hi Lylio,
On 12/2/18 16:20, Lylio wrote:
> 1. To click on a card so it opens up and displays the details, am I right
> to say I should create a card.html file in the templates folder for this?
It isn't necessary, but it is a good idea
What you need is to create a view that renders such template.
6 matches
Mail list logo