Skip to content

Environment Variables help page does not address non virtualenv bash consoles #44

@aadibajpai

Description

@aadibajpai

https://github.com/pythonanywhere/help_pages/blob/master/articles/EnvironmentVariables.md

mentions how to load environment variables in your web application or in your virtualenv consoles.

However, not everyone uses a virtualenv and there is no documentation to address loading the environment variables into a normal bash console.

I discovered you just need to add set -a; source ~/my-project-dir/.env; set +a to the .bashrc file that's at /home/username/ so it shouldn't be hard.

I think this would make the article more complete, I could open a PR if you want but I wanted to run this past you guys first :)

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