Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

"validate" command deprecated in Django 1.7 #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions chapter05.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)::
Expand Down Expand Up @@ -646,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
Expand Down