@@ -386,31 +386,35 @@ You can also use a Django-like choices tuple:
386
386
Frequently Asked Questions
387
387
==========================
388
388
389
- ## 1. How to specify the `.env ` path?
389
+ 1) How to specify the `.env ` path?
390
+ ----------------------------------
390
391
391
392
```python
392
393
import os
393
394
from decouple import Config, RepositoryEnv
394
395
config = Config(RepositoryEnv("path/to/.env"))
395
396
` ``
396
397
397
- ## 2. How to use python-decouple with Jupyter?
398
+ 2) How to use python-decouple with Jupyter?
399
+ -------------------------------------------
398
400
399
401
```python
400
402
import os
401
403
from decouple import Config, RepositoryEnv
402
404
config = Config(RepositoryEnv("path/to/.env"))
403
405
` ``
404
406
405
- ## 3. How to specify a file with another name instead of `.env `?
407
+ 3) How to specify a file with another name instead of `.env `?
408
+ ----------------------------------------------------------------
406
409
407
410
```python
408
411
import os
409
412
from decouple import Config, RepositoryEnv
410
413
config = Config(RepositoryEnv("path/to/somefile-like-env"))
411
414
` ``
412
415
413
- ## 4. How to define the path to my env file on a env var?
416
+ 4) How to define the path to my env file on a env var?
417
+ --------------------------------------------------------
414
418
415
419
```python
416
420
import os
@@ -420,7 +424,8 @@ DOTENV_FILE = os.environ.get("DOTENV_FILE", ".env") # only place using os.enviro
420
424
config = Config(RepositoryEnv(DOTENV_FILE))
421
425
` ``
422
426
423
- ## 5. How can I have multiple *env * files working together?
427
+ 5) How can I have multiple *env * files working together?
428
+ --------------------------------------------------------
424
429
425
430
```python
426
431
from collections import ChainMap
0 commit comments