Django deployed on Heroku in admin gives error 500
I'm very new to python. I've deployed my beginners Django app to Heroku. Its my tutorial project. I this project I have Students, Group, Teachers app. Models are connected somehow. So there is only CRUD class-based view. When Im entering admin page its only Group is working and showing list of objects. Teachers and Group gives 500error. Through application home page everything works properly.