For pkit
entries.get_list(pub_date__year=2005, pub_date__month=11)
TextSnippets > django >
Post code snippets. Sort by tags, people, people and tags, etc..
| « Earlier | 3 items total | Later » |
entries.get_list(pub_date__year=2005, pub_date__month=11)
"^(/[^media]/.*)$" => "/main.fcgi$1"
"^(/[^media].*)$" => "/main.fcgi$1"
def allow_comments(self):
return datetime.datetime.today() - datetime.timedelta(30) <= self.pub_date
{% if entry.allow_comments %}
... display the comment form here ...
{% endif %}
| « Earlier | 3 items total | Later » |