heroku: no default language could be detected for this app

I can’t remember how I fixed this but looking at the Date Modified in my files after I posted this question I created two files:

runtime.txt (thanks rurp) which contains:


Procfile which contains:

web: gunicorn projectname.wsgi --log-file -

This is a Django project and projectname.wsgi leads to a wsgi.py located at


This contains:

import os
import signal

import sys
import traceback

import time
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "projectname.settings")

application = get_wsgi_application()
application = DjangoWhiteNoise(application)

Leave a Comment