Recent entries in the sidebar

October 25, 2008

You can now see recent entries in the sidebar. Doing something like this in Django would have been a pain and likely involve complicated template tags. Using a framework with class based views means I can fetch the recent entries in my main class which is inherited by all other classes and suddenly every single page on this blog has my recent entries:

class BaseRequestHandler(webapp.RequestHandler):
    def render(self, template_file, extra_context={}):
        extra_context['request'] = self.request
        extra_context['admin'] = users.is_current_user_admin()
        extra_context['recent_entries'] = self.get_recent_entries()
        path = os.path.join(os.path.dirname(__file__), template_file)
        self.response.out.write(template.render(path, extra_context))

Tags

October 25, 2008

You can now include tags on entries and filter by those tags.

If clicking on one of the tags fails for you it's because App Engine is still building the index: Building indexes

neat and tags

Piratize!

October 24, 2008

Archive

October 24, 2008

There's now an Archive!

First Post

October 24, 2008

For the 24 Hour Challenge I knew there were two projects I wanted to complete. This is the first of the two.

I currently host my blog on my server. This is ineffecient because I'd much rather use my server for projects that need it like RSSmeme. This blog runs on Google App Engine and is powered by this.

It's very basic right now but eventually I hope to support more common blog features like tags and an archive. It now supports tags, archives, and more.

Yes, it does look a lot like Bret's blog. I swiped his style sheet :). Thanks Bret!