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
f69efdf1
authored
Aug 03, 2017
by
Kenneth Reitz
Committed by
GitHub
Aug 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72 from akshaybabloo/master
Add to 'database' instead of updating it
parents
4cd10bc3
edb2d81a
Show 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 @
f69efdf1
...
@@ -108,9 +108,8 @@ USE_I18N = True
...
@@ -108,9 +108,8 @@ USE_I18N = True
USE_L10N
=
True
USE_L10N
=
True
USE_TZ
=
True
USE_TZ
=
True
# Update database configuration with $DATABASE_URL.
# Change 'default' database configuration with $DATABASE_URL.
db_from_env
=
dj_database_url
.
config
(
conn_max_age
=
500
)
DATABASES
[
'default'
]
=
dj_database_url
.
config
(
conn_max_age
=
500
)
DATABASES
[
'default'
]
.
update
(
db_from_env
)
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER
=
(
'HTTP_X_FORWARDED_PROTO'
,
'https'
)
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