On 10/26/2017 11:51 PM, Abhilash Raj wrote:
On Thu, Oct 26, 2017, at 11:23 AM, Andrew Hodder wrote:
I have an odd one, my Hyperkitty is functionally working fine (archived several lists without issue, can login/out), however I must have done something wrong during it's setup as it's layout is completely broken (and it keeps throwing Example.com up in the top-left corner). You need to change SITE_ID in your Django's configuration to point to your domain name you want to be show there. Default is set to
example.com
which corresponds to SITE_ID=1 in the Django's configuraiton.How to find the SITE_ID of your domain?
This is rather no-so-nice right now, you will basically have to go to the admin console (/admin/) and login as admin. Then you visit
/admin/django_mailman3/maildomain/
and you should see your domain there. Clicking on it will how your it's id in URL bar, like /admin/django_mailman3/maildomain/2 or something.I understand this is rather difficult thing to do, there is an issue open to make this information visible in the UI. Ideally, SITE_ID is sequential, so if you have only one domain, it is most probably 2. You shouldn't get it from maildomain but the real site instead which is under the sites entry /admin/sites/site/
Also the default is actually 1 and not 2 Django automatically creates a site with id 1 if the sites framework is activated. Only if you delete the existing entry and add another, you will get an id of 2. Just editing will leave you with 1.
as mentioned in the issue on gitlab, I think we should just drop the SITE_ID or maybe only enable it for DEBUG==True