You forget the decorator:
@models.permalink
def get_absolute_url(self):
return ('blog_post_detail', None, {
'year': self.publish.year,
'month': self.publish.strftime('%b').lower(),
'day': self.publish.day,
'slug': self.slug
})
2011/11/15 Fredrik Grahn
You get the template but you don't render it.
2011/1/14 Fletcher Haynes
> Hi everyone,
>
> I'm trying to work on a project in Django, but I'm encountering some odd
> behavior. I have this in base.html in my template directory:
>
>
>
>
> {% block title %}Schedule{% endblock
2 matches
Mail list logo