From ebc423e91a5c527759e4c7862b6e36b99a73b6b4 Mon Sep 17 00:00:00 2001 From: "LB (Ben Johnston)" Date: Sun, 19 Nov 2017 15:41:19 +0800 Subject: [PATCH] Add instructions on how to do test app migrations Previously answered [here](https://github.com/wagtail/wagtail/pull/4024#issuecomment-345267222) and [here](https://groups.google.com/forum/#!msg/wagtail-developers/P6x9N5qzq-I/0gbRzWgBBgAJ). Just adding this into these docs for future contributors. --- docs/contributing/developing.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/contributing/developing.rst b/docs/contributing/developing.rst index 6781803a0..0eddecb23 100644 --- a/docs/contributing/developing.rst +++ b/docs/contributing/developing.rst @@ -81,6 +81,13 @@ an argument to ``runtests.py`` $ python runtests.py wagtail.wagtailcore.tests.test_blocks.TestIntegerBlock +**Running migrations for the test app models** + +You can create migrations for the test app by running the following from the Wagtail root. + +.. code-block:: console + $ django-admin.py makemigrations --settings=wagtail.tests.settings + **Testing against PostgreSQL**