0

I have this project structure in Django:

├── .env
├── app
│   ├── Dockerfile
│   ├── Dockerfile.prod
│   ├── entrypoint.prod.sh
│   ├── entrypoint.sh
│   ├── hello_django
│   │   ├── __init__.py
│   │   ├── asgi.py
│   │   ├── settings.py
│   │   ├── urls.py
│   │   └── wsgi.py
│   ├── manage.py
│   └── requirements.txt

Using django-environ how can i set the path to .env file?

environ.Env.read_env(os.path.join(BASE_DIR, '.env'))

This one doesn't work because its one level higher that project.

How can i set the correct path?

0 Answers0