Ah, very good. I understand now. Thank you both for your help.
On Friday, October 19, 2018 at 10:49:28 PM UTC-5, Daniel Veazey wrote:
>
> I'm using 2.1. I have a list of blog posts, and I want to display them
> differently based on their age. The most recent post will be displayed
If it helps, my template looks like this:
{% extends "photomanager/base.html" %}
{% block content %}
{% if latest.photo %}
Photographer: {{ latest.photo.photographer }}
Caption: {{ latest.photo.caption }}
{% endif %}
{{ latest.title }}
{{ la
I'm using 2.1. I have a list of blog posts, and I want to display them
differently based on their age. The most recent post will be displayed
prominently, and the 10 most recent posts after that will be displayed in
two columns below it. The way I'm passing the view to the template is:
class Po
A good place to start is the official tutorials:
https://docs.djangoproject.com/en/2.1/intro/
Incorporating Bootstrap is a good way to make your sites responsive:
https://getbootstrap.com/
https://www.w3schools.com/bootstrap4/default.asp
On Wednesday, October 17, 2018 at 8:04:04 AM UTC-5, Soumya
4 matches
Mail list logo