Browse Source

correct bug

Mr Duhaz 3 months ago
parent
commit
043c8bda14
1 changed files with 5 additions and 3 deletions
  1. 5 3
      apps.py

+ 5 - 3
apps.py

@@ -1,12 +1,14 @@
+import sys
 from django.apps import AppConfig
 
-
-
-
 class CoreConfig(AppConfig):
 	name = 'core'
 
 	def ready(self):
+
+		if 'migrate' in sys.argv:
+			return
+
 		print("-- Démarage du Core --")
 		print(">> Vérification des variables d'environement")