Re: About Class Based views

2015-03-17 Thread Ryan Hiebert
As a anecdotal data point, when I getting started with class-based views I put everything into get_context_data method, because that’s where I thought the code for constructing the context should go. I eventually figured out that I should probably never override that method, but rather override

Re: Composite fields

2015-03-17 Thread Asif Saifuddin
but? IRC discussion? On Tuesday, March 17, 2015 at 9:09:49 PM UTC+6, Thomas Stephenson wrote: > > Not impatient or anything, but... > > Bump. > > On 13 March 2015 at 14:07, Thomas Stephenson > wrote: > >> All the null handling stuff has been removed from the specification and >> replaced with sl

Re: About Class Based views

2015-03-17 Thread Curtis Maloney
No... I'm well aware of CCBV, and think it's a great tool... however, I had in mind something that would more clearly show (a) the stratified layers of interface, and (b) the typical call paths [through the layers] of the various Views and Mixins. Such a visualisation, I feel, would help many peop

Re: About Class Based views

2015-03-17 Thread Russell Keith-Magee
On Wed, Mar 18, 2015 at 5:38 AM, Curtis Maloney wrote: > I found when taking the CBGV session in MelbDjango School, it was best to > approach teaching CBV as an exercise in Interfaces. > > Once the students were familiar with writing basic views, and the patterns > therein, much of CBGV became "o

Re: GSOC 2015: Improving the less popular database backends

2015-03-17 Thread Russell Keith-Magee
Hi Yichun Duan, Thanks for submitting a proposal - what you've submitted is a good start, but it needs some more detail and clarification. 4.1: You say you're going to save the database-specific tests "to another place" - Can you give specifics, or at least an idea of you current thinking? How wi

Re: About Class Based views

2015-03-17 Thread Curtis Maloney
I found when taking the CBGV session in MelbDjango School, it was best to approach teaching CBV as an exercise in Interfaces. Once the students were familiar with writing basic views, and the patterns therein, much of CBGV became "obvious", and the lesson focused more on the power of interfaces.

Re: About Class Based views

2015-03-17 Thread Moritz S.
Am Dienstag, 17. März 2015 20:41:53 UTC+1 schrieb poiati: > > The problem with CBV is the learning curve. > Totally agree with that! Personally I really like CBVs and I also write my own subclasses and mixins regularly, but I think you'll really have a hard time even writing a simple mixin if y

Re: About Class Based views

2015-03-17 Thread Paulo Gabriel Poiati
The problem with CBV is the learning curve. You can do standard things like CRUD's fast as hell but if you need some kind of customisation you probably gonna need to deep dive into the class hierarchy to understand it. If you dominate it you will be very productive and happy. I'm not saying there

Re: About Class Based views

2015-03-17 Thread Gaurav Dadhania
IMHO, Class-based views — either ones provided by Django or a 3rd party library or your own — are an inheritance pattern, like any other design pattern, use it if it suits your use case. Like a lot of things, there is no one, right answer. I've enjoyed using CBVs for CMS-y projects (list products

About Class Based views

2015-03-17 Thread Asif Saifuddin
Hi, I found this blog post about class based views of django http://lukeplant.me.uk/blog/posts/my-approach-to-class-based-views/ what do you guys think about? Regards -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django it

Re: Composite fields

2015-03-17 Thread Thomas Stephenson
Not impatient or anything, but... Bump. On 13 March 2015 at 14:07, Thomas Stephenson wrote: > All the null handling stuff has been removed from the specification and > replaced with slightly more stringent restrictions on `value_to_dict`. > There is an updated version which includes that change

Re: GSOC 2015: Improving the less popular database backends

2015-03-17 Thread Yichun Duan
Thank you for your suggestions. I'll try. And I've written a draft proposal according to this Shai's idea. Maybe you will be willing to take a look at it. draft proposal 在 2015年3月16日星期一 UTC+8下午11:04:51,Tim Graham写道: > > I

Re: GSOC 2015: Improving the less popular database backends

2015-03-17 Thread Yichun Duan
I've written a draft proposal according to your idea. draft proposal I'm looking forward for your feedback. Thank you for your help. 在 2015年3月16日星期一 UTC+8下午7:22:40,Shai Berger写道: > > I can't answer for sure because there ar