When a Django server error occurs, an email should be sent to librarycard-dev@wikimedia.org. As with T255144, we have this configured in the Library-Card-Platform and should be able to mostly copy that implementation.
The Library Card implementation can be found at: