question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BASE_URL setting should be renamed

See original GitHub issue

The BASE_URL setting used by wagtailadmin for generating URLs to put in emails is a bit inconsistent with the rest of Wagtail’s settings, which are all prefixed with the module name.

I think this should be renamed to WAGTAILADMIN_BASE_URL (with backwards compatibilty for the previous setting).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
mx-mothcommented, Jan 10, 2017

May I also suggest:

  1. Documenting the WAGTAILADMIN_BASE_URL setting. BASE_URL is currently not documented.
  2. If WAGTAILADMIN_BASE_URL is not set, falling back on request.site.root_url, then falling back to building a URL from the request HOST_NAME.
0reactions
lb-commented, Apr 2, 2022

Hey @sandilsranasinghe here are some answers.

* there are some usages of `settings.BASE_URL` in some html templates. Should I replace those with the tag as base_url or just change them to `settings.WAGTAILADMIN_BASE_URL`
  • adding a tag is probably the best for in template usage.
* by pull out to a generic util do you mean add a util in admin and then use that util in the base_url_setting tag?
  • yes, there should be one place (util) that does all the fallback behaviour+ read settings for this as there are two fallbacks
* for the reference should I add documentation under the topic Email Notifications or just create a new topic for this
  • good question, not sure but a new section makes sense I think. As you have done in your PR looks good
Read more comments on GitHub >

github_iconTop Results From Across the Web

Base URL - What is Base URL? - apilayer Blog
What is a Base URL? A base URL is the continuous element of your website's address. For example, you'll notice that the address...
Read more >
Change the default base url for axios - Stack Overflow
You can change the Axios base URL directly where you want to use it anotherAxiosRequest(){ axios.defaults.baseURL = http://wwww.example.com ...
Read more >
Is it possible to rename a community url AND set up a redirect ...
Go to Setup > custom domains; Add a new custom URL for the site that is to be rebranded; Select the appropriate domain...
Read more >
Changing The Site URL – WordPress.org Forums
On the Settings -> General screen in a single site installation of WordPress, there are two fields named “WordPress Address (URL)” and “Site...
Read more >
Change base URL - YouTrack Support | JetBrains
I'm using of YouTrack cloud version, how can i change the base URL of my account? For example, change "https://old.myjetbrains.com/youtrack" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found