Skip to content

Commit

Permalink
docs(databases): correct the way of using use environment variables (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
duyet authored Jul 11, 2023
1 parent 07695db commit b804830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/databases/extra-settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ A common pattern is to use environment variables to make secrets available.

```python
def example_password_as_env_var(url):
# assuming the uri looks like
# mysql://localhost?superset_user:{SUPERSET_PASSWORD}
return url.password.format(os.environ)
# assuming the uri looks like
# mysql://localhost?superset_user:{SUPERSET_PASSWORD}
return url.password.format(**os.environ)

SQLALCHEMY_CUSTOM_PASSWORD_STORE = example_password_as_env_var
```
Expand Down

0 comments on commit b804830

Please sign in to comment.