python - how to: installing django on heroku -
i'm absolutely "brand new" paas , django/python.
i install django on heroku. before, need install on python. i'm unable that. looked while doc it, unfortunately i'm not able.
i've created heroku account. log in , try follow guide.
please, me. give me starting point...
tia
renato
setting project
you'll need add couple of files root of project:
the first file, named requirements.txt, should contain dependencies project (this not heroku specific). @ minimum, should include:
django then, you'll need add file named profile (this more heroku-specific) tells heroku how run project:
web: gunicorn your_project_name.wsgi:application your_project_name should whatever argument gave manage.py startproject. should name of folder contains wsgi.py file (settings.py there too).
deploying heroku
next, should initialize git repository projec:t
git init then, commit project:
git add . git commit -m "initial commit project" then, provided installed heroku toolbelt, should able add application heroku:
heroku create and finally, deploy heroku using git:
git push heroku master you app isn't running yet, you'll want launch it:
heroku ps:scale web=1 then, can access via browser:
heroku open you might want have @ heroku's django guide.
Comments
Post a Comment