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 trialOszkár Fehér
Treehouse Project ReviewerWhat 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?
4 Answers
Chris Freeman
Treehouse Moderator 68,454 PointsIn 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
Treehouse Project ReviewerI 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
Treehouse Moderator 68,454 PointsNo worries. That's two more than I speak at once (or ever)!!
Oszkár Fehér
Treehouse Project ReviewerWhen 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
Treehouse Moderator 68,454 Pointscan you post your current code, and the entire error message?
Oszkár Fehér
Treehouse Project Reviewer{% with timestamp=created_at %}
{{ timestamp|date:"F j, Y"}
{% endwith %}
Like this?
Chris Freeman
Treehouse Moderator 68,454 PointsYou 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
"