Server error from deleting example.com site - native

Hi,
I accidentally deleted ‘example.com’ site under /admin after creating a new site name. After click save then I got ‘500 internal server error’. I remember did this before in the past but just reinstalled to get it worked again. I searched around but couldn’t find the answer to why example.com site name cannot be deleted. Or I miss some step after or before deleting it? Appreciated if someone can provide me a link explaining about this or know to fix this error and not have to reinstall the whole thing over again.

Many thanks,
Monti

You can create the record from mysql command line.

I think this happens because you are missing the SITE_ID=1, which Django use by default. You can try adding in your settings file (production.py/aws.py/XX.py) SITE_ID=2, or another valid number (If you don’t have any site configured, you should add one by hand into the MySQL database).

2 Likes