From 2543510bc23b74b93d6271b230e5ebe19fa0d18a Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 20 May 2016 23:16:10 -0500 Subject: [PATCH 1/2] "validate" command deprecated in Django 1.7 Added admonition to highlight the use of "check" since 1.7 --- chapter05.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chapter05.rst b/chapter05.rst index 4d8200d..65c0abd 100644 --- a/chapter05.rst +++ b/chapter05.rst @@ -599,6 +599,10 @@ give you helpful information about what was wrong with the code. Any time you think you have problems with your models, run ``python manage.py validate``. It tends to catch all the common model problems. +.. admonition:: "validate" command deprecated in Django 1.7 + The command "validate" was replaced with "check" in 1.7 + https://docs.djangoproject.com/en/1.7/ref/django-admin/#django-admin-check + If your models are valid, run the following command for Django to generate ``CREATE TABLE`` statements for your models in the ``books`` app (with colorful syntax highlighting available, if you're using Unix):: From a0163953140c6fa280ddebd5d26efb07f9630fb8 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 20 May 2016 23:30:23 -0500 Subject: [PATCH 2/2] "sqlall" deprecated in 1.7 "sqlall" was removed in 1.7 and replaced with "sqlmigrate" as part of the migration workflow https://docs.djangoproject.com/en/1.9/topics/migrations/ --- chapter05.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/chapter05.rst b/chapter05.rst index 65c0abd..b089dc6 100644 --- a/chapter05.rst +++ b/chapter05.rst @@ -599,8 +599,8 @@ give you helpful information about what was wrong with the code. Any time you think you have problems with your models, run ``python manage.py validate``. It tends to catch all the common model problems. -.. admonition:: "validate" command deprecated in Django 1.7 - The command "validate" was replaced with "check" in 1.7 +.. admonition:: ``validate`` command deprecated in Django 1.7 + The command ``validate`` was replaced with ``check`` in 1.7 https://docs.djangoproject.com/en/1.7/ref/django-admin/#django-admin-check If your models are valid, run the following command for Django to generate @@ -650,6 +650,11 @@ should see something like this:: .. SL Tested ok (sqlall output for postgres matches that shown here) +.. admonition:: "sqlall" deprecated in 1.7 + "sqlall" was removed in 1.7 and replaced with "sqlmigrate" as part of the migration workflow + https://docs.djangoproject.com/en/1.9/topics/migrations/ + + Note the following: * Table names are automatically generated by combining the name of the app