Skip to content

Instructions for SOLARPI_SECRET env variable missing #6

@mjpieters

Description

@mjpieters

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions