Re: Displaying items differently on one template based on age

2018-10-20 Thread Daniel Veazey
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

Re: Displaying items differently on one template based on age

2018-10-19 Thread Daniel Veazey
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

Displaying items differently on one template based on age

2018-10-19 Thread Daniel Veazey
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

Re: Need help in creating responsive web page using Python

2018-10-17 Thread Daniel Veazey
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