def index(self): ''' feeds are to be served as a file ''' entries = ContentFactory().getArchive() # feeds need dates in RFC2822 for entry in entries: # all changes to the entry should be here entry.date = RFC2822(entry.date) entry.url = 'http://pietisticmonk.com/blog/' + entry.url # publish date will be the latest post's date. pubdate = RFC2822(datetime.date.today().__str__()) return render(file='templates/rss.xml')
def index(self): action = "Cache Satus" stats = ContentFactory().cacheStatus() return render(file='templates/cache.html')
def clear(self, key=None): '''Clear Cache here''' action = str(ContentFactory().cacheClear(key)) status = ContentFactory().cacheStatus() return render(file='templates/cache.html')
def index(self): entries = ContentFactory().getArchive() return render(file='templates/archive.html')
def index(self): action = "Cache Satus" stats = ContentFactory().cacheStatus() return render(file = 'templates/cache.html')
def clear(self, key=None): '''Clear Cache here''' action = str(ContentFactory().cacheClear(key)) status = ContentFactory().cacheStatus() return render(file = 'templates/cache.html')
def index(self): entries = ContentFactory().getArchive() return render(file = 'templates/archive.html')
def article(self, title=None): entry = ContentFactory().getEntry(title) return render(file = 'templates/article.html')