问题
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 and how can I fix it?
回答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.
来源:https://stackoverflow.com/questions/12204775/function-based-generic-views-have-been-deprecated