Azure-Samples / djangoapp

The polls app from the official Django tutorial, that demonstrates how to build data-driven Python apps in Azure App Service.
MIT License
54 stars 426 forks source link

SECRET_KEY out of settings file #21

Open jachym opened 3 years ago

jachym commented 3 years ago

Shouldn't the SECRET_KEY go to Azure's environment variables?

https://github.com/Azure-Samples/djangoapp/blob/0d5c4af1c2385833325d2308fe56946a379172f7/azuresite/settings.py#L24

larsschellhas commented 3 years ago

Yes, that would make a lot of sense in my opinion as well!

BillmanH commented 2 years ago

FWIW, here is my settings file getting them from the os env variables.

To set those variables is really easy. I created a readme doc to update them, both locally and remotely