Most .env parsers will not parse a file with spacing around the = sign. I remember raising something similar for django-environ years ago, except I was the one being told that time :) https://github.com/joke2k/django-environ/issues/35