-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin subdomains #1807
Comments
That's an interesting one! We intentionally don't include domains in the result of As a workaround, you could create a dummy site record (create a new page at the root level, and add a Site record in Settings -> Sites pointing to that page, using any hostname you like) - this will cause Page.url to always generate full URLs. I guess the proper fix would be to add an "always generate full URLs" flag to settings - I can't see any more elegant way of handling this. Re |
Greetings.
Is there a way to properly serve wagtail admin site on a different subdomain (eg. admin.example.com)?
I've patched
django-subdomains
middleware so it would work withwagtail.wagtailcore.models.Site
, but now all reverse urls in admin point to admin.example.com/--uri--/. To fix this I need to patchwagtail.wagtailcore.models.Page.url
, but I just don't want to monkey-patch source packages.Is there any way around that? And maybe in the future you could implement the
settings.DEFAULT_PAGE_MODEL
setting for wagtail, so we could override some default behaviour?Thanks.
The text was updated successfully, but these errors were encountered: