I think programming in another language is pretty important when it comes down to solving real world challenges, the reason is that Salesforce has a lot of system limitations and the fact that Apex isn’t flexible enough to handle all sorts of problems.

Today, we are going to set up a Django app in Heroku and make the first deployment.

Firstly, you will need to be familiar with python and how the Django framework works. And I strongly recommend you to use virtual environment to avoid making changes to system files.

In order to use Heroku, you are gong to need a free Heroku account, Heroku is owned by Salesforce by the way. Once you have it, you can download the Heroku CLI from their website, the Mac Version can be found here.

Next, we will need to create an app on Heroku, you can do this via Heroku website or by running “heroku create” on your local project folder (your git repository).

“””When you create an app, a git remote (called heroku) is also created and associated with your local git repository.”””

By running “git push heroku master“, you can easily push changes to Heroku. Salesforce/Heroku handles the deployment process so easily, you won’t even need to worry about things such as dependencies, as long as you declare everything in your files (for Django web applications).

I think this should be enough for you to get the app up and running provided you already know how to run the website on your local machine.

In the next article, I will talk more about how to integrate your python app with your Salesforce instance.

More information on how to set up a Heroku app can be found at https://devcenter.heroku.com/articles/getting-started-with-python#introduction, and happy new year.