codeforamerica / cfapi

The Code for America API. Tracks and motivates activity and participation across the civic technology movement.
http://codeforamerica.org/api
MIT License
113 stars 52 forks source link

.env is not processed #313

Closed milovanderlinden closed 6 years ago

milovanderlinden commented 6 years ago

I followed the instruction in the readme to set up a development environment. I add print(os.environ.get('DATABASE_URL')) to see that the output is None but my database url is in the .env file. Is python-dotenv missing? Or are you parsing .env internally?

tdooner commented 6 years ago

Hi @milovanderlinden, in its current state, this is a documented behavior. The README instructs to start the server with:

env `cat .env` python app.py runserver

We probably should add dotenv to do this automatically, but for now I'm going to close this issue.