[Answer]-Should view logic be abstracted to other modules?

1πŸ‘

βœ…

It would depend on what your views do, if they verify form data, then use django-forms to handle the form data, and that can make your code much cleaner. You can take a look at them here.

If you do a lot of things with models, just create a django ModelManager to handle the queries that you always do in your views.

However, if you think that there is a lot of boiler-plate code that does not fit into all of these, then why not use django CBVs to get rid of having to write boiler-plate code all over again.

It all comes down to what you want.

Leave a comment