The webapp code must be refactored in order to isolate each feature into a dedicated django application centralizing templates, views implementation and URLs definition.
The following features should be a django application:
- Web API (already a django app)
- Browse (already a django app)
- Save Code Now
- Mailmap
- Deposit moderation view
- Miscellaneous (badges, iframes, metrics, ...)
Those applications should also be enabled or disabled by configuration, for instance Save Code Now or Mailmap are not of interest for a SWH mirror.