From 857e1b12f520feefcf0a3367066aa6f1d18dc981 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Tue, 18 Feb 2025 18:21:58 +0100 Subject: [PATCH] add more fresh-start instructions (#151) Reviewed-on: https://git.fediversity.eu/Fediversity/Fediversity/pulls/151 Reviewed-by: kiara Grouwstra --- panel/README.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/panel/README.md b/panel/README.md index a1770fa..0a6f503 100644 --- a/panel/README.md +++ b/panel/README.md @@ -27,20 +27,30 @@ The Fediversity Panel is a web service for managing Fediversity deployments with manage ``` -- Run the server locally +- With a fresh database, run: + + ``` + manage migrate + ``` + +- Run the server locally: ```shell-session manage runserver ``` -- Whenever you add a field in the database schema, run: +- Create an admin user: - ```console + ```shell-session + manage createsuperuser + ``` + + and log in at . + +- After changing the database schema, add migrations and apply them: + + ```shell-session manage makemigrations - ``` - - Then before starting the server again, run: - - ``` manage migrate ``` +