From 816de40716b6d896dc4fef8ef6e07dd9ef66b226 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Sun, 6 Jul 2014 11:37:17 +0200 Subject: [PATCH] Make Heroku use Python 3. --- deploy/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/README.md b/deploy/README.md index cbc99020bb7..a4ba084656a 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -28,6 +28,12 @@ Another thing we need to create is a Procfile. Open up your code editor, create Then save it. Done! +## Runtime.txt + +We need to tell Heroku which Python version we want to use. This is simply done by creating a `runtime.txt` and puttin the following text inside: + + python-3.4.1 + ## mysite/settings.py Another thing we need to do is modify our website's `settings.py` file. Open `mysite/settings.py` in your editor and add the following lines: @@ -112,6 +118,7 @@ Next, we’ll create a new git repository and save our changes. Go to your conso create mode 100644 mysite/wsgi.py create mode 100644 manage.py create mode 100644 requirements.txt + create mode 100644 runtime.txt ## Deploy to Heroku!