peacecorps / Opportunity-Portal

CLOSED - Giving potential applicants a view into the Volunteer opportunities available, along with additional data to make an informed decision to join Peace Corps.
9 stars 6 forks source link

Getting Started with Django on Heroku #14

Closed sshami closed 10 years ago

sshami commented 10 years ago

The following is some technical information to provide guidance to getting started with the Django framework and deploying it to Heroku. I have provided notes and online tutorials for installation (on Mac) that will hopefully be helpful. I recommend going through this process on a Mac if possible since the steps to getting setup are relatively simple on a Mac. Otherwise, there are other tutorials you can find online for installation on Windows as well. If you already have everything setup and are ready to start working on the application, you may disregard this post.

Before getting Django up and running on Heroku, you will need to install Python and Virtualenv on your computer if you haven't already done so. The following tutorial walks you through installing those with Homebrew.

http://docs.python-guide.org/en/latest/starting/install/osx/

Make sure you have already created a Heroku account before moving on to this next step.

Once you have Python and Virtualenv on your system & have created a Heroku account, you can install the Heroku Toolbelt on your local workstation. The following link shows you how to set that up – you will only need to follow everything under the “Local Workstation Setup” heading – no need to worry about the Flask web framework mentioned on this page since we will be using the Django framework.

https://devcenter.heroku.com/articles/getting-started-with-python#local-workstation-setup

Once you've installed the Heroku Toolbelt, you'll need to install the PostgreSQL database system on your local computer so you can test locally. The reason we need to use PostgreSQL is because Heroku uses a built in PostgreSQL database.

http://www.postgresql.org/

Now you can get started with installing the Django framework, then creating a Django app and deploying it to Heroku. The following two tutorials go through similar steps to guide you through this process.

https://devcenter.heroku.com/articles/getting-started-with-django http://www.marinamele.com/2013/12/how-to-set-django-app-on-heroku-part-i.html

If you need more information about Deploying Django applications on Heroku, the following link has a lot of information regarding that.

http://www.deploydjango.com/

And of course, if needed, you can find a lot of information about the Django framework on the Django site.

https://docs.djangoproject.com/en/1.6/

jkevintu commented 10 years ago

This issue is close due to we are moving this project to GAE backend.