[Answered ]-How to get Uwsgi working with wagtail (django)

0👍

The problem was in the following file:

/opt/rocker/local/lib/python2.7/site-packages/django/conf/global_settings.py

There is a Secret Key = '' specified here.

I added a secret key, and the app ran ok with Uwsgi

👤Gary

2👍

In the Wagtail base project structure, settings.py is split into several files in the settings directory – see http://docs.wagtail.io/en/v1.9/reference/project_template.html#django-settings for details. The best place to put SECRET_KEY is settings/local.py, since you want to keep it out of version control.

👤gasman

0👍

What worked for me after so many tries, was to delete the whole settings/ folder and create a proper settings.py file instead. If you guys from @Wagtail want to separate settings… you can do this https://simpleisbetterthancomplex.com/tips/2016/11/01/django-tip-19-protecting-sensitive-information.html

👤iMitwe

Leave a comment