﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24488	Optional SITE_ID when migrating django.contrib.sites	Claudemiro	Marten Kenbeek	"The documentation says:

""get_current_site() will now lookup the current site based on request.get_host() if the SITE_ID setting is not defined.""

[https://docs.djangoproject.com/en/dev/releases/1.8/#django-contrib-sites]

When I try to migrate the project without the SITE_ID parameter, then I got this error:


{{{
AttributeError: 'Settings' object has no attribute 'SITE_ID'
}}}

I know about the ticket https://code.djangoproject.com/ticket/23945

I think a better approach is to use the SITE_ID for the migration only if the SITE_ID is configured in settings file, otherwise it must be auto incremented as it were before."	Bug	closed	contrib.sites	1.8beta2	Release blocker	fixed	sites, SITE_ID, database		Ready for checkin	0	0	0	0	0	0
