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?