Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open
Commits
0133b9ac
Commit
0133b9ac
authored
Mar 23, 2013
by
Tyler Hallada
Browse files
Remove dj_database_url usage in settings
parent
2445573f
Changes
1
Hide whitespace changes
Inline
Side-by-side
whats_open/settings.py
View file @
0133b9ac
# Django settings for whats_open project.
# Django settings for whats_open project.
import
os
import
os
import
dj_database_url
DEBUG
=
True
DEBUG
=
True
TEMPLATE_DEBUG
=
DEBUG
TEMPLATE_DEBUG
=
DEBUG
...
@@ -20,9 +19,6 @@ DATABASES = {
...
@@ -20,9 +19,6 @@ DATABASES = {
}
}
}
}
if
os
.
environ
.
get
(
'DATABASE_URL'
,
None
):
DATABASES
=
{
'default'
:
dj_database_url
.
config
(
default
=
'postgres://localhost'
)}
# Local time zone for this installation. Choices can be found here:
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# although not all choices may be available on all operating systems.
...
...
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