Skip to content Skip to sidebar Skip to footer

While Use .env Got Nameerror: Name 'config' Is Not Defined

I'm following a tutorial to upload static file to amazon S3 to. I need to add two things in the settings.py AWS_ACCESS_KEY_ID = config'AWS_ACCESS_KEY_ID' AWS_SECRET_ACCESS_KEY = c

Solution 1:

Just remove config from your .env

AWS_ACCESS_KEY_ID = 'AWS_ACCESS_KEY_ID'
AWS_SECRET_ACCESS_KEY = 'AWS_SECRET_ACCESS_KEY'

Post a Comment for "While Use .env Got Nameerror: Name 'config' Is Not Defined"