Closed Bug 1601564 Opened 3 months ago Closed 2 months ago

Allow using a dotenv file to configure the WSGI application

Categories

(Webtools :: Pontoon, enhancement)

enhancement
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: flo, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

I would like to put Pontoon configuration in a (dotenv) text file on production servers. The location of this file could be provided through an environment variable (DOTENV_PATH or similar).

Actual results:

Currently this is not implemented so nothing happened.

Expected results:

If you agree with this change, I can make a PR on Github that allows to store Pontoon config in a text file. It will only add few lines in "pontoon/wsgi.py" and no additional dependencies as Pontoon already depends on django-dotenv.

Hey Fabien, I'd be curious to see an implementation for this indeed. Please go for it! :)

Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.