djangosnippets.org: Latest snippets tagged with 'class based views'https://djangosnippets.org/tags/class-based-views/2010-06-02T07:22:13.482315-05:00Simple Class Based View Wrapper
2010-06-02T07:22:13.482315-05:00mattjmorrisonhttps://djangosnippets.org/snippets/2049/<p>After reading this article: http://blog.roseman.org.uk/2010/06/2/class-based-views-and-thread-safety/</p>
<p>and checking out this snippet: http://djangosnippets.org/snippets/2046/</p>
<p>I realized that I was using a class based view without even thinking about the consequences... so, without having to completely re-factor my existing class based views to make them singletons, I wrote this wrapper that should allow my …</p>
Freely redistributableMy approach on class based views
2010-06-01T05:37:53.972918-05:00henninghttps://djangosnippets.org/snippets/2046/<p>By using <strong>new</strong> the result of a class instantiation is not an object but the result of a method call.
This way classes can be used for views the same way as functions.
</p>
Freely redistributable