﻿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
23945	Use configured SITE_ID when creating the default site	Wojtek Ruszczewski	nobody	"Consider the following steps:
* start a new project;
* edit settings adding `SITE_ID = 26` and `'django.contrib.sites'`;
* migrate.

The default ""example.com"" site will be created with the primary key equal to 1 not 26.

Fixing it in general doesn't seem to cause any harm, but it probably only matters with some nonrel backends. For instance, in MongoDB automatic primary keys are [http://docs.mongodb.org/manual/reference/object-id/ certain bytestings] ^[#f1 1]^ and mongo backend [https://github.com/django-nonrel/mongodb-engine/blob/master/django_mongodb_engine/base.py#L99 doesn't support] anything else as keys.

''![1][[=#f1]] Supporting such keys requires some black magic, but that's another story.''"	New feature	closed	contrib.sites	dev	Normal	fixed			Unreviewed	1	0	0	0	0	0
