Reputation: 26
i am trying to deploy my site using heroku. Being a starter just following the steps given on a website. In settings my csv and database default is not getting recognised.
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())
DATABASES = {
'default': dj_database_url.config(
default=config('DATABASE_URL')
)
}
Upvotes: 0
Views: 212
Reputation: 1217
Install python-decouple pip install python-decouple
ran into the same ordeal.
Upvotes: 0
Reputation: 600059
This has nothing to do with Heroku; this wouldn't work locally either. The error message tells you all you need to know: you have not defined Csv
. It's not clear what it is supposed to be, but you either need to import that function, or define it yourself.
Upvotes: 1