Surrounds BLOG_NAME with try/catch rather than getattr.

Fixes "DatabaseError: no such table: django_site" issue, refs #3