At the moment, there are some print statements inside the code. Some of them seem to be unnecessary, while others might be useful, but probably should use the stdlib logging module instead to allow for better filtering (for example by log level).
./users/models.py: print(f"ERROR: getUserRoleOfString: no defined UserRole for {user_role_string}")
./users/views.py: print("Deleted")
./users/views.py: print(num)
./users/views.py: print(request.GET)
./users/views.py: print(request.POST['user_role'])
./users/views.py: print("DONE")
./events/views.py: print(lecture.available_timeslots)
./event_management_system/set_rights.py: # print(permission)
./emails/views.py: print(f"Attendant not set for lecture {lecture.title}. Not sending email.")