Skip to content

Allow MP_PROJECT_CONFIG handling to support absolute paths - #57

Merged
pollardld merged 1 commit into
dockerdecouplefrom
dd1
Jul 13, 2026
Merged

Allow MP_PROJECT_CONFIG handling to support absolute paths #57
pollardld merged 1 commit into
dockerdecouplefrom
dd1

Conversation

@pollardld

@pollardld pollardld commented Jul 9, 2026

Copy link
Copy Markdown
Member

Allows config.ini files to be stored outside of madrona-portal. This will enable modularity of portal apps. Config files for wcoa, wcoffshore, and mida-portal can be moved (decoupled) out of madrona-portal and into each app.

@paigewilliams I added you as a reviewer for visibility. This PR begins the process of decoupling the data portal apps (wcoa, mida-portal) from madrona-portal.


@pollardld
pollardld requested a review from paigewilliams July 9, 2026 21:17
@pollardld pollardld self-assigned this Jul 9, 2026
Copilot AI review requested due to automatic review settings July 9, 2026 21:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Django settings to support locating the portal config.ini outside the madrona-portal repo by allowing MP_PROJECT_CONFIG to be provided as an absolute path, enabling app modularity/decoupling.

Changes:

  • Allow MP_PROJECT_CONFIG to be an absolute path when resolving CONFIG_FILE.
  • Keep existing relative-path behavior by joining MP_PROJECT_CONFIG against BASE_DIR.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread marco/marco/settings.py
Comment on lines +42 to +45
if os.path.isabs(MP_PROJECT_CONFIG):
CONFIG_FILE = MP_PROJECT_CONFIG
else:
CONFIG_FILE = os.path.normpath(os.path.join(BASE_DIR, MP_PROJECT_CONFIG))
@pollardld
pollardld merged commit 9433de9 into dockerdecouple Jul 13, 2026
1 check passed
@pollardld
pollardld deleted the dd1 branch July 13, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants