heroku / heroku-django-template

A Django 2.0 base template featuring all recommended best practices for deployment on Heroku and local development.
https://www.heroku.com/python
903 stars 0 forks source link

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

Open Tinitto opened 6 years ago

Tinitto commented 6 years ago

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 commented 6 years ago

thanks!

ghost commented 6 years ago

Good catch 👍