2

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?

Simeon Visser
  • 118,920
  • 18
  • 185
  • 180
anc1revv
  • 1,563
  • 7
  • 24
  • 42

1 Answers1

6

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.

Simeon Visser
  • 118,920
  • 18
  • 185
  • 180