Browse Source

os.env -> os.environ

pull/114/head
Pēteris Caune 8 years ago
parent
commit
55e5f10d73
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      README.md

+ 4
- 4
README.md View File

@ -123,10 +123,10 @@ configuration from environment variables like so:
DATABASES = {
'default': {
'ENGINE': os.env['DB_ENGINE'],
'NAME': os.env['DB_NAME'],
'USER': os.env['DB_USER'],
'PASSWORD': os.env['DB_PASSWORD'],
'ENGINE': os.environ['DB_ENGINE'],
'NAME': os.environ['DB_NAME'],
'USER': os.environ['DB_USER'],
'PASSWORD': os.environ['DB_PASSWORD'],
'TEST': {'CHARSET': 'UTF8'}
}
}


Loading…
Cancel
Save