Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pub
/
flynn-django-template
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
edb2d81a
authored
Jul 26, 2017
by
Akshay Raj Gollahalli
Committed by
GitHub
Jul 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add to 'database' instead of updating it
parent
5195774d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
project_name/settings.py
+2
-3
No files found.
project_name/settings.py
View file @
edb2d81a
...
...
@@ -108,9 +108,8 @@ USE_I18N = True
USE_L10N
=
True
USE_TZ
=
True
# Update database configuration with $DATABASE_URL.
db_from_env
=
dj_database_url
.
config
(
conn_max_age
=
500
)
DATABASES
[
'default'
]
.
update
(
db_from_env
)
# Change 'default' database configuration with $DATABASE_URL.
DATABASES
[
'default'
]
=
dj_database_url
.
config
(
conn_max_age
=
500
)
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER
=
(
'HTTP_X_FORWARDED_PROTO'
,
'https'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment