Re: Using class based views.

2015-02-24 Thread Javier Guerra Giraldez
On Tue, Feb 24, 2015 at 1:51 AM, James Schneider wrote: > However, if you have working view functions, what is the"need" to switch to > CBV's? this. the switch to CBV, wasn't "modern Django views are classes instead of functions; Get rid of your functions!, FBV are dead!". Instead it's just t

Re: Using class based views.

2015-02-23 Thread James Schneider
Sure, you would just override the get() and post() and possibly dispatch() methods in your classes as needed. I always recommend the classy CBV inspector, helps immensely with understanding the available methods and inheritance in the CBV's. http://ccbv.co.uk/ Also check out the source code of D