gem / oq-engine

OpenQuake Engine: a software for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
375 stars 272 forks source link

Avoid setting the OQ_APPLICATION_MODE env variable outside the context of the webui #9711

Closed ptormene closed 1 month ago

ptormene commented 1 month ago

We set the env variable at runtime instead of setting it at import time when settings.py is imported.

Fixes https://github.com/gem/oq-engine/issues/9710