Skip to content

Fix Configuration Handling #8

@DakotaNelson

Description

@DakotaNelson

Right now, configuration is handled in two places: a .env file, which is used by Heroku, and the Flask configuration handling system.

This means that some parts of the application use os.environ.get, while others use current_app.config. This is confusing and bad, and leaves configuration scattered across multiple sources.

Solution:

Set up a default_settings.py file (perhaps give it a better name) that resembles this example, then update the configuration import in Flask (again, following this example), and make sure that everywhere in the code that uses os.environ.get is changed to use current_app.config. Ensure that all settings and configuration are handled in one place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions