Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Customizing Django Templates Building Custom Tags Use the Date Filter

Oszkár Fehér
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Oszkár Fehér
Treehouse Project Reviewer

What value? the 1st question in the Quiz is: "Output the value in the variable timestamp into your template."

Please someone can explain what value the quiz is writing about? Its something missing from the question or we have to guess?

code_challenges/templates/code_challenges/list.html

4 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,441 Points

In a Django temple, all values are passed in the view context. So the assumption here is that timestamp is passed in this context and is available as a template variable.

So, what is the notation to show a context variable in a Django template?

Post back if you need more help. Good luck!!!

Oszkár Fehér
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Oszkár Fehér
Treehouse Project Reviewer

I am sorry for the delay but i am at work and i use my breaks to study. Eventualy a made it with your help:

{{ timestamp|date:"m/d/y, H:i"}}

this code worked.

The problem was that i didn't understood to well even the error message. Thank you very much Chris.

I appoligaze because i don't understand always the question. I am speaking 3 languages at once at work thats why i am confussed sometimes. thank you

Chris Freeman
Chris Freeman
Treehouse Moderator 68,441 Points

No worries. That's two more than I speak at once (or ever)!!

Oszkár Fehér
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Oszkár Fehér
Treehouse Project Reviewer

When it gives me the error it say, make sure u use the with.....

now i am really lost and i don't understand

Chris Freeman
Chris Freeman
Treehouse Moderator 68,441 Points

can you post your current code, and the entire error message?

Chris Freeman
Chris Freeman
Treehouse Moderator 68,441 Points

You seem to be missing a trailing curly bracket at the end of the second line.

In the case of this challenge, there isn't a need to use with/endwith. Also, the date format string as specified in the challenge text should be "m/d/y, H:i"