On Sun, Mar 10, 2019, at 9:00 AM, Torge Riedel wrote:
Am 10.03.19 um 16:44 schrieb Mark Sapiro:
On 3/10/19 8:18 AM, Torge Riedel wrote:
I deleted the existing "example.com" and added a new one "lists.mydomain.de".
Now the admin (django) interface always gives "An error occurred while processing your request". After one of the first navigation clicks I saw a message that "site with id 1 is missing".
In your Django settings your have
SITE_ID = 1
which pointed to the example.com domain you deleted.
You need to override this in settings_local.py. Probably
SITE_ID = 2
but if that doesn't work, try '0'
Ah, thank you Mark. That makes a kind of sense. I changed the database directly to fix it. And renamed example.com to lists.mydomain.de. Now the error is gone.
I'm wondering why the initial database set up of postorius (?) adds "example.com". Is there a way to directly add my domain instead? Somewhere in settings_local.py?
Django does that and there doesn't seem to be a way to override that to something else during initial migration. Or nothing I have found yet.
Only way is to edit "example.com" to something you'd like or add another domain entry and change SITE_ID to point o that.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)