An additional point, if you want to be able to use the view more 
generically (be able to pass in custom context from your urls.py), I've 
done the following:

class StaticPageView(TemplateView):
    context = None

    def get_context_data(self, **kwargs):
        context = super(StaticPageView, self).get_context_data(**kwargs)
        context.update(self.context or {})
        return context

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cc05af47-b6ae-4050-bbd9-6a8958db502e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to