Modified to use Django's render shortcut