Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquebastos committed Apr 17, 2023
1 parent 6d721d8 commit 7c9b250
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.rst
Expand Up @@ -386,31 +386,35 @@ You can also use a Django-like choices tuple:
Frequently Asked Questions
==========================

## 1. How to specify the `.env` path?
1) How to specify the `.env` path?
----------------------------------

```python
import os
from decouple import Config, RepositoryEnv
config = Config(RepositoryEnv("path/to/.env"))
```

## 2. How to use python-decouple with Jupyter?
2) How to use python-decouple with Jupyter?
-------------------------------------------

```python
import os
from decouple import Config, RepositoryEnv
config = Config(RepositoryEnv("path/to/.env"))
```

## 3. How to specify a file with another name instead of `.env`?
3) How to specify a file with another name instead of `.env`?
----------------------------------------------------------------

```python
import os
from decouple import Config, RepositoryEnv
config = Config(RepositoryEnv("path/to/somefile-like-env"))
```

## 4. How to define the path to my env file on a env var?
4) How to define the path to my env file on a env var?
--------------------------------------------------------

```python
import os
Expand All @@ -420,7 +424,8 @@ DOTENV_FILE = os.environ.get("DOTENV_FILE", ".env") # only place using os.enviro
config = Config(RepositoryEnv(DOTENV_FILE))
```

## 5. How can I have multiple *env* files working together?
5) How can I have multiple *env* files working together?
--------------------------------------------------------

```python
from collections import ChainMap
Expand Down

0 comments on commit 7c9b250

Please sign in to comment.