Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Mar 2, 2018
1 parent 867be19 commit d131695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_name/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
USE_TZ = True

# Change 'default' database configuration with $DATABASE_URL.
DATABASES['default'].update(dj_database_url.config(conn_max_age=500, require_ssl=True))
DATABASES['default'].update(dj_database_url.config(conn_max_age=500, ssl_require=True))

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
Expand Down

0 comments on commit d131695

Please sign in to comment.