Open jedie opened 8 years ago
I made a simple view to create a multisite.models.Alias entry for the current host with the default SITE_ID.
I can contribute this via pull request.
Similar problem here but I get into an infinite loop instead of a 404.
Hey @jedie - to be fair you could manually add the domain from a python or db shell in that situation, but point taken :)
We'd welcome a PR for that view! I don't think we should neccessarily change the default fallback behaviour, but it could be useful to have that view around as an out-of-the-box option.
The DynamicSiteMiddleware will always raise 404 if he can't find the current Domain in the Alias model. But i can't login and use the admin panel, if i always get a 404...
Set MULTISITE_FALLBACK will not really help here.
So i have to deactivate DynamicSiteMiddleware, login and insert the current Domain and activate DynamicSiteMiddleware ?!?