-
-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
To repeat this.
- Make sure django goversion is 2.X or above
- Make sure SITE_ID is not set.
- Make sure ROBOTS_SITE_BY_REQUEST is not set on settings.
/robots.txt endpoint gives following error:
You're using the Django "sites framework" without having set the SITE_ID setting. Create a site in your database and set the SITE_ID setting or pass a request to Site.objects.get_current() to fix this error.
It would be nice if SITE_ID is not set django's default behaviour would work.
Error is coming from this line:
Line 29 in f484c2a
return Site.objects.get_current() |
SalahAdDin and mpyrev
Metadata
Metadata
Assignees
Labels
No labels