models.py:
class Post(models.Model):
pub_date = models.DateTimeField
template.html:
{{ post.pub_date }}
output:
23 october 2014 19:25
Problem is I dont want "19:25" to show. What can I do?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
Thank you very much for that point! :D
I am fairly new to Django and Python, just followed the official doc for
making an app and these kinds of things aren't obvious for me.
To make it more clear: I changed from DateTimeField to DateField and
updated my browser.. (nothing).., I actually had to
2 matches
Mail list logo