[PR #501] [MERGED] URL expression to use the Django URL dispatcher #676

Closed
opened 2026-02-27 16:40:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/retspen/webvirtmgr/pull/501
Author: @ainoniwa
Created: 2/13/2015
Status: Merged
Merged: 2/16/2015
Merged by: @retspen

Base: masterHead: djang_url


📝 Commits (2)

  • b6a9c66 URL expression to use the Django URL dispatcher in templates
  • f4272fb URL expression to use the Django URL dispatcher in views

📊 Changes

12 files changed (+41 additions, -32 deletions)

View changed files

📝 console/views.py (+2 -1)
📝 create/views.py (+4 -3)
📝 hostdetail/views.py (+3 -2)
📝 instance/views.py (+8 -7)
📝 interfaces/views.py (+4 -3)
📝 networks/views.py (+5 -4)
📝 secrets/views.py (+2 -1)
📝 servers/views.py (+5 -4)
📝 storages/views.py (+5 -4)
📝 templates/base.html (+1 -1)
📝 templates/base_auth.html (+1 -1)
📝 templates/login.html (+1 -1)

📄 Description

Modified URL expression to use the Django URL dispatcher.

Expected uses:

Install the WebVirtMgr inside reverse proxy, and think the situation that access the all (exclude the noVNC) resources used subdirectory path.
(e.g. http://example.com/webvirtmgr/instances/1/)

Then add configuration the below, and work under the subdirectory.

$ cat webvirtmgr/local/local_settings.py
STATIC_URL = '/webvirtmgr/static/'
FORCE_SCRIPT_NAME='/webvirtmgr'

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/retspen/webvirtmgr/pull/501 **Author:** [@ainoniwa](https://github.com/ainoniwa) **Created:** 2/13/2015 **Status:** ✅ Merged **Merged:** 2/16/2015 **Merged by:** [@retspen](https://github.com/retspen) **Base:** `master` ← **Head:** `djang_url` --- ### 📝 Commits (2) - [`b6a9c66`](https://github.com/retspen/webvirtmgr/commit/b6a9c66605dc80cdbcbbb0224ddb656bf5bc9c8c) URL expression to use the Django URL dispatcher in templates - [`f4272fb`](https://github.com/retspen/webvirtmgr/commit/f4272fb51c8182a85d7cbb6c2b8b352cb3d1941b) URL expression to use the Django URL dispatcher in views ### 📊 Changes **12 files changed** (+41 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `console/views.py` (+2 -1) 📝 `create/views.py` (+4 -3) 📝 `hostdetail/views.py` (+3 -2) 📝 `instance/views.py` (+8 -7) 📝 `interfaces/views.py` (+4 -3) 📝 `networks/views.py` (+5 -4) 📝 `secrets/views.py` (+2 -1) 📝 `servers/views.py` (+5 -4) 📝 `storages/views.py` (+5 -4) 📝 `templates/base.html` (+1 -1) 📝 `templates/base_auth.html` (+1 -1) 📝 `templates/login.html` (+1 -1) </details> ### 📄 Description Modified URL expression to use the Django URL dispatcher. Expected uses: Install the WebVirtMgr inside reverse proxy, and think the situation that access the all (exclude the noVNC) resources used subdirectory path. (e.g. http://example.com/webvirtmgr/instances/1/) Then add configuration the below, and work under the subdirectory. ``` $ cat webvirtmgr/local/local_settings.py STATIC_URL = '/webvirtmgr/static/' FORCE_SCRIPT_NAME='/webvirtmgr' ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 16:40:06 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#676
No description provided.