Have you try googling your problem
Victor
On Sat, Sep 12, 2020, 9:34 AM dum dum <hanzatom@gmail.com> wrote:
I tried to put my Django Secret Key in Environment Variables.--SECRET_KEY = os.environ.get('SECRET_KEY')I did save the SECRET_KEY on env var windows 10 like thisWhen I tried to py manage.py runserver, I got this errordjango.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.I followed thisBut no idea with the solution..At this point, strange thing even occurred, I tried to py manage.py without any SECRET_KEY on my Env Var on windows 10, and just leavingSECRET_KEY = os.environ.get('SECRET_KEY')in my settings.py.I got no error.Strange.. But when I deployed it on heroku, it says the same error like thisdjango.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.Is anyone here experienced the same stuck like me? Please kindly advise. Thanks
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANV3w%3DYdb3SuiC7KYrkN4bfieQx-fQxhm%2BPeMLpxJDWubVbwyA%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANTsAyc%3D%3DBLN7a0_c8rYd%3DsLHyWq78CHxAQr6Sa_PMcqtP7Cwg%40mail.gmail.com.

No comments:
Post a Comment