From d855d9c579839da3fb8cc42071f31170b2a1891e Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 26 May 2022 22:03:44 +0200 Subject: [PATCH] Fix installation order in docs It is pointless to run `migrate` before INSTALLED_APPS has been set --- docs/setup.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/setup.md b/docs/setup.md index 68970c9..63ac17a 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -6,12 +6,6 @@ Install this library using `pip`: $ pip install django-sql-dashboard -### Run migrations - -The migrations create tables that store dashboards and queries: - - $ ./manage.py migrate - ## Configuration Add `"django_sql_dashboard"` to your `INSTALLED_APPS` in `settings.py`. @@ -28,6 +22,12 @@ urlpatterns = [ ] ``` +### Run migrations + +The migrations create tables that store dashboards and queries: + + $ ./manage.py migrate + ## Setting up read-only PostgreSQL credentials The safest way to use this tool is against a dedicated read-only replica of your database - see [security](./security) for more details.