-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
The old README.rst documenation included the text:
First, set your app's secret key as an environment variable. For example, example add the following to ``.bashrc`` or ``.bash_profile``.
.. code-block:: bash
export SOLARPI_SECRET = 'something-really-secret'
The newer Markdown version doesn't, and it is causing issues with people trying out this project; they get a traceback that is not necessarily understandable to non-Python, non-Flask developers:
Traceback (most recent call last):
File "manage.py", line 11, in <module>
from solarpi.app import create_app
File "/home/amani/Desktop/new/solarpi/solarpi/app.py", line 10, in <module>
from solarpi.settings import ProdConfig
File "/home/amani/Desktop/new/solarpi/solarpi/settings.py", line 7, in <module>
class Config(object):
File "/home/amani/Desktop/new/solarpi/solarpi/settings.py", line 9, in Config
SECRET_KEY = os_env['SOLARPI_SECRET']
File "/home/amani/Desktop/new/.venv/lib/python2.7/UserDict.py", line 40, in __getitem__
raise KeyError(key)
KeyError: 'SOLARPI_SECRET'
Please update the new README to include the env var instructions.
Metadata
Metadata
Assignees
Labels
No labels