Re: Will function based views ever be deprecated?

2017-04-01 Thread Antonis Christofides
Hi, This is not an answer to your question (which was answered by James Bennett anyway), but I liked this recent article about class vs. function based views: https://simpleisbetterthancomplex.com/article/2017/03/21/class-based-views-vs-function-based-views.html This is his conclusion: I us

Re: Will function based views ever be deprecated?

2017-04-01 Thread James Bennett
If you're asking "Will there ever be a point when all built-in views in Django are class-based", the answer is "maybe", because whether to write one of those class-based or function-based depends on what the view needs to do, how much configurability/extensibility it needs to support, etc. If you'

Re: Will function based views ever be deprecated?

2017-04-01 Thread George Silva
In the end, cbvs are functions. So no, I don't they come to an end soon. I love function based views. Em 2 de abr de 2017 12:37 AM, "Some Developer" escreveu: > Hi, > > I was wondering if function based views will ever be deprecated? I > absolutely hate class based views with a passion for vari

Will function based views ever be deprecated?

2017-04-01 Thread Some Developer
Hi, I was wondering if function based views will ever be deprecated? I absolutely hate class based views with a passion for various reasons (too complex, trying to solve a problem that doesn't exist etc). With a function based view I can write it in 2 minutes pretty much and handling multiple

Form is invalid even when all fields are correct? Tried to check with fields.error but I got none, so I removed it.

2017-04-01 Thread jmh9014
As mentioned above, I am trying to figure out why my code isn't saving a form even though it is valid. My code right now looks like this: Views: @login_required @csrf_exempt def profile(request): """ Where the profile information is being rendered """ docs2 = Doctor.objects.f

Re: Would it be a good idea to build a IM app using django channels?

2017-04-01 Thread Vic Wei
Thank you very much, Andrew, it helps! Really apprieciated. I am trying to build the app myself now. -- 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