From df1cb33db53c822fe7c716d59f96d3c583d706e7 Mon Sep 17 00:00:00 2001
From: Dorian Lesbre <dorian.lesbre@gmail.com>
Date: Thu, 4 Mar 2021 18:06:41 +0100
Subject: [PATCH] More targets

---
 Makefile | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/Makefile b/Makefile
index fd14672..f9a7137 100644
--- a/Makefile
+++ b/Makefile
@@ -33,3 +33,19 @@ clean: ## Remove migrations and delete database
 .PHONY:	test
 test: ## Tests all the apps
 	$(PYTHON) $(MANAGER) test
+
+.PHONY: adduser
+adduser: ## Create a new superuser
+	$(PYTHON) $(MANAGER) createsuperuser
+
+.PHONY: shell
+shell: ## Run django's shell
+	$(PYTHON) $(MANAGER) shell
+
+.PHONY: static
+static: ## collect static files
+	$(PYTHON) $(MANAGER) collectstatic
+
+.PHONY: preprod
+preprod: test static ## Prepare and check production
+	$(PYTHON) $(MANAGER) check --deploy
-- 
GitLab