Using functions and class based views in django views together

Django course, project “Django weekly dessert” shows an example of the simultaneous use of functions and class based views in the view.py. The question is, how correct is the simultaneous use of classes and functions in a real project? The Zen of Python recommends writing code in the same style, and is it possible to write all the code in views.py like that and how right it will be? (More interested about classes).

https://www.codecademy.com/paths/build-python-web-apps-with-django/tracks/accounts-and-authentication-in-django/modules/django-accounts-and-authentication/projects/django-weekly-dessert