Error 400 after deployment of Pontoon on heroku app

I tried to deploy the last Github master branch of Pontoon on Heroku as said in instructions, but I pressed Open App in heroku I see only “Error 400”.

In the log of heroku toolbelt I find something but I don’t know how to fix it. I’m not familiar with Django but I would really like to take advantage of the Pontoon.
Thank you.

heroku[web.1]: State changed from starting to crashed
heroku[web.1]: Process exited with status 3
app[web.1]: [2019-12-12 07:13:07 +0000] [13] [ERROR] Exception in worker process
File “/app/.heroku/python/lib/python2.7/site-packages/gunicorn/”, line 583, in spawn_worker
app[web.1]: worker.init_process()
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/”, line 129, in init_process
app[web.1]: self.load_wsgi()
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/”, line 138, in load_wsgi
app[web.1]: self.wsgi =
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/newrelic/common/”, line 374, in _wrapper
app[web.1]: return function(wrapped(*args, **kwargs))
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/”, line 67, in wsgi
app[web.1]: self.callable = self.load()
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/”, line 52, in load
app[web.1]: return self.load_wsgiapp()
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/”, line 41, in load_wsgiapp
app[web.1]: return util.import_app(self.app_uri)
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/gunicorn/”, line 350, in import_app
app[web.1]: import(module)
app[web.1]: File “/app/pontoon/”, line 25, in
app[web.1]: application = sslify(get_wsgi_application())
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/django/core/”, line 13, in get_wsgi_application
app[web.1]: django.setup(set_prefix=False)
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/django/”, line 27, in setup
app[web.1]: apps.populate(settings.INSTALLED_APPS)
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/django/apps/”, line 85, in populate
app[web.1]: app_config = AppConfig.create(entry)
app[web.1]: File “/app/.heroku/python/lib/python2.7/site-packages/django/apps/”, line 94, in create
app[web.1]: module = import_module(entry)
app[web.1]: File “/app/.heroku/python/lib/python2.7/importlib/”, line 37, in import_module
app[web.1]: import(name)
app[web.1]: ImportError: No module named debug_toolbar

Hi @krogp!

Did you perhaps set DJANGO_DEV environment variable to True?

Make sure it’s set to False in production environment.