Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

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

Open
Tinitto opened this issue Mar 2, 2018 · 2 comments
Open

Comments

@Tinitto
Copy link

Tinitto commented Mar 2, 2018

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.

@kennethreitz
Copy link
Contributor

thanks!

@ghost
Copy link

ghost commented Jun 24, 2018

Good catch 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants