dynaconf / dynaconf/dynaconf

dynaconf list tells I am in "development" mode, when choosing no environement.

Open
#783 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
4.3k
Forks
347
Avg merge
2d 2h
Merged PRs (30d)
1

Description

**Describe the bug**

when working with environments, the command `dynaconf -i path.to.settings list` displays by default `working in development environment`. It's confusing because it seems more logical to call it `default` environement. For example I have default values, and two environements called `dev` and `prod`. When I choose them, I get respectively `working in dev environment` and `working in prod environment`. If I don't select any of them, the message tells me I'm in `development` environement, that confuses everyone in the team. I guess it's worse if you actually name one of your environement `development`.

**To Reproduce**

start in a fresh dir, `dynaconf init`, and add `environements=True` in the config.py loader.

then `dynaconf -i path.to.settings list`

it displays `working in development environment`

1. Having the following folder structure

```
├── __pycache__
│   └── config.cpython-310.pyc
├── config.py
└── settings.toml
```

2. Having the following config files:
default

3. Having the following app code:

no app

4. Executing under the following environment
fresh env with just dynaconf

**Expected behavior**

see bug description

**Environment (please complete the following information):**
- OS: ubuntu 22.04
- Dynaconf Version 3.1.9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.