cs50 templating urls 1

cs50 templating urls

2012 Archive
{# Or with the year in a template context variable: #}

Here is what the above code is Doing:
1. The URLconf entry for the news archive view is named news-archive.
2. The URLconf entry for the year archive view is named news-year-archive.
3. The URLconf entry for the month archive view is named news-month-archive.
4. The URLconf entry for the week archive view is named news-week-archive.
5. The URLconf entry for the day archive view is named news-day-archive.
6. The URLconf entry for the today archive view is named news-today-archive.
7. The URLconf entry for the date archive view is named news-date-archive.
8. The URLconf entry for the detail view is named news-detail.

Similar Posts