Deploying Django apps on Heroku

By : Shabda Raaj

Deploying Django apps on Heroku:

Read this first:

This is a great article by the Heroku. I am just filling in some more details and making this step-by-step.

  1. Get your Django project code.
  2. Create a virtualenv with a no-site-packages command ::

    virtualenv vent --no-site-packages

  3. Install Django, psycopg2 (postgres connector), gunicorn and any other required Django libraries.

  4. Confirm that you have all the required libraries and you can run your code locally using runserver.
  5. Create a requirement.txt by using ::

    pip freeze > requirements.txt
  6. Make sure you have a requirements.txt at the root ...

more info..
Topics : django
© Agiliq, 2009-2012