tangowithcode / tango_with_django_19

A beginners guide to web programming with Python / Django 1.9
Apache License 2.0
207 stars 188 forks source link

CH 6 possible edits. #27

Closed xmc2 closed 8 years ago

xmc2 commented 8 years ago

At the end of chapter 6 (currently page 69) in the index.html update I believe

and {% load staticfiles %} should be part of the header.

leifos commented 8 years ago

Thanks Matt,

Next week, I will be actively work on TwD so I will fix it then. But, yes, you'll definitely need load staticfiles, but category or category.name should be fine. if you use just use category then the "str" method will be called which returns the name :-)

I hope that helps Leif

On Wed, Jul 20, 2016 at 8:53 PM, matt cole notifications@github.com wrote:

At the end of chapter 6 (currently page 69) in the index.html update I believe

{{ category.name }\ should be {{ category }\

and {% load staticfiles %} should be part of the header.

Thank you! This is my first real intro to Django and the book is great so far (will have to buy a hard copy for reference afterward!)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leifos/tango_with_django_19/issues/27, or mute the thread https://github.com/notifications/unsubscribe-auth/AB02BxwFQMXfoS6orvoto4yE75s7RTfvks5qXm6rgaJpZM4JRF6w .

maxwelld90 commented 8 years ago

Yup, can confirm {% load staticfiles %} is now in the index.html template modifications. I'll close this - let us know if you spot anything else. Thank you!