Skip to content

Commit 1bb00bd

Browse files
committed
Merge pull request DjangoGirls#18 from bmispelon/heroku-python3
Make Heroku use Python 3.
2 parents 820c569 + 816de40 commit 1bb00bd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deploy/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ Another thing we need to create is a Procfile. Open up your code editor, create
2828

2929
Then save it. Done!
3030

31+
## Runtime.txt
32+
33+
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:
34+
35+
python-3.4.1
36+
3137
## mysite/settings.py
3238

3339
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
112118
create mode 100644 mysite/wsgi.py
113119
create mode 100644 manage.py
114120
create mode 100644 requirements.txt
121+
create mode 100644 runtime.txt
115122

116123
## Deploy to Heroku!
117124

0 commit comments

Comments
 (0)