You have to set the environment variable in conf.py like so: os.environ["DEFAULT_PSW"] = "some_value"