def allow_comments(self): return datetime.datetime.today() - datetime.timedelta(30) >= self.pub_date
Change the timedelta value to however many days you'd like to leave comments open after publication, and now you'll be able to selectively display the comment form only when comments are open, by adding this to your template (assuming the object is being referenced by the name 'entry'):
{% if entry.allow_comments %} ... display the comment form here ... {% endif %}