From 7bd1513a4f9b2f6575ec176d8cd8dde961edb8e1 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 4 Dec 2014 17:24:25 -0800 Subject: [PATCH] Docs tweaks. --- docs/backends.rst | 12 ++++++++++++ docs/index.rst | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/backends.rst b/docs/backends.rst index deeac4c..590cee2 100644 --- a/docs/backends.rst +++ b/docs/backends.rst @@ -87,6 +87,18 @@ make sure the data model is correctly created:: 'constance.backends.database', ) +Please make sure to apply the database migrations:: + + python manage.py migrate database + +.. info:: If you're upgrading Constance to 1.0 and use Django 1.7 or higher + please make sure to let the migration system know that you've + already created the tables for the database backend. + + You can do that using the ``--fake`` option of the migrate command:: + + python manage.py migrate database --fake + Just like the Redis backend you can set an optional prefix that is used during database interactions (it defaults to an empty string, ``''``). To use something else do this:: diff --git a/docs/index.rst b/docs/index.rst index 71485e6..2980166 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -50,7 +50,8 @@ Here, ``42`` is the default value for the key ``THE_ANSWER`` if it is not found in the backend. The other member of the tuple is a help text the admin will show. -See the :ref:`Backends ` section how to setup the backend. +See the :ref:`Backends ` section how to setup the backend and +finish the configuration. Usage -----