This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
Make service_name uppercase
We need it uppercase to read env vars with that prefix.
pull/2/merge
Rodolfo Carvalho
10 years ago
parent
3c3f724fc5
commit
432bd9b344
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
project/database.py
+ 1
- 1
project/database.py
View File
@ -11,7 +11,7 @@ engines = {
def
config
(
)
:
service_name
=
os
.
getenv
(
'
DATABASE_SERVICE_NAME
'
)
service_name
=
os
.
getenv
(
'
DATABASE_SERVICE_NAME
'
)
.
upper
(
)
if
service_name
:
engine
=
engines
.
get
(
os
.
getenv
(
'
DATABASE_ENGINE
'
)
,
engines
[
'
sqlite
'
]
)
else
:
Write
Preview
Loading…
Cancel
Save