Skip to content Skip to sidebar Skip to footer

Function-based Generic Views Have Been Deprecated

DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead. I keep getting this warning, when I'm running my site. What does this mean

Solution 1:

Django 1.3 introduced class-based views and also added a range of generic class-based views. Django also has documentation about migrating function-based views to class-based views.

There is not really much more to say about it: your project currently uses function-based views whereas class-based views are the new way of creating views.

Post a Comment for "Function-based Generic Views Have Been Deprecated"