iftechfoundation / ifarchive-admintool

Admin script for IF Archive work
1 stars 1 forks source link

Configure the config file location through an env var #21

Closed erkyrath closed 9 months ago

erkyrath commented 9 months ago

Right now you have to edit admin.wsgi line 23 to locate the config file. This is silly. Put a SetEnv in the Apache config and rely on that.

erkyrath commented 9 months ago

Turns out this is a minor pain in the ass, because SetEnv vars come in through the environ argument to application(). They're not directly in os.environ.

This means that I have to rearrange the startup logic. All the init stuff currently done at the top of the file has to be done inside application(). This gets somewhat ugly.