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
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'
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
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
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
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
6 matches
Mail list logo