- Any functions which aren't views shouldn't be placed in views.py
- Any functions related to work with forms should be in forms.py and be method of the form class
- Any function which used by more than one view/form/function should be saved in utils.py
Useful links: Django Reusable App Conventions , Django Application Conventions
No comments:
Post a Comment