python-dirbtuves / website

Python dirbtuvės project web site.
GNU Affero General Public License v3.0
2 stars 0 forks source link

About page. #62

Closed iakovleva closed 9 years ago

iakovleva commented 9 years ago

Connects to #4

iakovleva commented 9 years ago

Please have a look at About page.

  1. I used hardcoded url in event_list.html because I couldn't find out why this kind of link doesn't work. <a href="{% url "event-details" event.starts.year event.starts.month event.starts.day event.slug %}">{{ event.title }}</a> This should be something obvious...
  2. Event instances are created in admin by superuser. So it is possible to save description only in my development database.
sirex commented 9 years ago

I used hardcoded url in event_list.html because I couldn't find out why this kind of link doesn't work.

<a href="{% url "event-details" event.starts.year event.starts.month event.starts.day event.slug %}">{{ event.title }}</a>

This should be something obvious...

It does not work because there is no such object event in template context. You have to add event to the template context.

sirex commented 9 years ago

Few small changes and I will merge this pull request.