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.
- [Answered ]-Django model unit test
- [Answered ]-Django – reload only body page using block not refresh whole page
- [Answered ]-Django URL Conflict Despite Specific Views
- [Answered ]-Django import / export: ForeignKey fields return None
- [Answered ]-How to iterate over json object in python containing dictionary and list
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
- [Answered ]-Django inconsistency of uwsgi and dev servers
- [Answered ]-How to decide dynamic work flow for a set of model?
- [Answered ]-Django: how to make a link on main page to sub-pages
- [Answered ]-Django Rest Framework – IntegrityError: null value in column "user_id" violates not-null constraint
- [Answered ]-TypeError: context must be a dict rather than Context
Source:stackexchange.com