Skip to content

Conversation

@churnikov
Copy link
Contributor

Description

This pull request includes changes to the Django settings and URL configuration to make the admin URL path configurable through an environment variable.

Configuration changes:

  • studio/settings.py: Added DJANGO_ADMIN_URL_PATH to be retrieved from the environment variable, defaulting to "admin" if not set.

URL configuration changes:

  • studio/urls.py: Modified the admin URL path to use the DJANGO_ADMIN_URL_PATH setting, allowing it to be dynamically set.

Types of changes

To indicate the type of change (such as bugfix or new feature), use a github pull request label.

Checklist

If you're unsure about any of the items below, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.

  • This pull request is against develop branch (not applicable for hotfixes)
  • I have included a link to the issue on GitHub or JIRA (if any)
  • I have included migration files (if there are changes to the model classes)
  • I have included, reviewed and executed tests (unit and end2end) to complement my changes
  • I have updated the related documentation (if necessary)
  • I have added a reviewer for this pull request
  • I have added myself as an author for this pull request
  • In the case I have modified settings.py, then I have also updated the studio-settings-configmap.yaml file in serve-charts

Further comments

Anything else you think we should know before merging your code!

@churnikov churnikov requested review from Copilot and j-awada April 1, 2025 15:37
@churnikov churnikov self-assigned this Apr 1, 2025
@churnikov churnikov requested a review from a team as a code owner April 1, 2025 15:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request makes the Django admin URL path configurable using an environment variable, allowing the admin route to be customized without changing the code.

  • Updated studio/settings.py to retrieve DJANGO_ADMIN_URL_PATH from the environment
  • Modified studio/urls.py to construct the admin URL using the new setting

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
studio/settings.py Added DJANGO_ADMIN_URL_PATH with a default value "admin"
studio/urls.py Updated admin route to use the configurable admin URL path

Copy link
Contributor

@j-awada j-awada left a comment

Choose a reason for hiding this comment

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

lgtm

@churnikov churnikov merged commit 2b9b195 into develop Apr 3, 2025
2 checks passed
@churnikov churnikov deleted the SS-1357-create-allow-list-for-admin-route branch April 3, 2025 14:28
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.

3 participants