Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,064 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,064 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,064 Points

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

Chris Freeman
Chris Freeman
Treehouse Moderator 68,064 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"