The views/views.py module is over 1000 lines long. This file should be separated into more views, organized by logical grouping. Here's one proposal:
views/
... existing views
- autocomplete.py # Autocompletes
- api.py # any JSON API views
- export.py # data export, e.g., csv. Not sure if this should be in api too?
- auth.py # any authentication views
- shared.py # any functions that are shared across views
- flatpages.py # any views for the flat pages (contact, about, etc.)
- redirect.py # all redirects
The
views/views.py
module is over 1000 lines long. This file should be separated into more views, organized by logical grouping. Here's one proposal: