heroku-django-template icon indicating copy to clipboard operation
heroku-django-template copied to clipboard

TypeError: config() got an unexpected keyword argument 'require_ssl'

Open Tinitto opened this issue 7 years ago • 2 comments

When I run python manage.py startapp appname, the TypeError in the subject of this issue is thrown.

Solution

I realized that in the settings.py file, had this line:

DATABASES['default'].update(dj_database_url.config(conn_max_age=500, require_ssl=True))

The require_ssl argument is actually supposed to be ssl_require basing on the the config() function in dj_database_url.py file of the dj-database-url package.

Tinitto avatar Mar 02 '18 13:03 Tinitto

thanks!

kennethreitz avatar Mar 02 '18 13:03 kennethreitz

Good catch 👍

ghost avatar Jun 24 '18 00:06 ghost