heroku tutorial django web hosting code example
Example: how to deploy to heroku djangorest framework app
heroku login
You will prompt to provide heroku credentials(Email and password), once you have authenticated you can access both heroku and git commands.