DDMAL / CantusDB

A new site for Cantus Database running under Django.
https://cantusdatabase.org
MIT License
5 stars 6 forks source link

Separate views into their own files #1533

Open ahankinson opened 1 month ago

ahankinson commented 1 month ago

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