#26453: SITE_ID should start from 1, not 0 -------------------------------+---------------------------- Reporter: ynikitenko | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: 1.8 Severity: Normal | Keywords: SITE_ID, sites Triage Stage: Unreviewed | Has patch: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------+---------------------------- I had a problem with migrations when I set SITE_ID to 0. In the [https://docs.djangoproject.com/en/1.9/ref/settings/#std:setting- SITE_ID documentation] I read that it should be integer, so I thought 0 would be fine. I had the following error: ValueError: The database backend does not accept 0 as a value for AutoField. I suggest writing in the documentation that it should start from 1. The same problem is in the documentation for django 1.9.
-- Ticket URL: <https://code.djangoproject.com/ticket/26453> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.05c7bb61819c09bb2a91e0be59c922f9%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.