Browse Source

Merge branch 'master' of ssh://192.168.1.24:10022/MrDuhaz/core

Mr Duhaz 2 months ago
parent
commit
5d96d82810
3 changed files with 7 additions and 5 deletions
  1. 5 3
      apps.py
  2. 1 1
      templates/base.html
  3. 1 1
      templates/base_no_card.html

+ 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")
 

+ 1 - 1
templates/base.html

@@ -139,7 +139,7 @@
 		</div>
 		<div class="col-lg-3 p-lg-1 p-md-0 mb-sm-1">
 			{% if page.c_card_rp == 'True'%}<div class="card" style="background-color: rgba(250,250,250,0.88);" >{% endif %}
-			{% if page.c_includ_rp != 'None'%}{% include page.c_includ_rp %}{% endif %}
+			{% comment %} {% if page.c_includ_rp != 'None'%}{% include page.c_includ_rp %}{% endif %} {% endcomment %}
 			{% block right_panel %}
 			{% endblock %}
 			{% if not request.user.is_authenticated and page.p_right and not "account/" in request.path %}

+ 1 - 1
templates/base_no_card.html

@@ -142,7 +142,7 @@
 		
 		<div class="col-lg-3 p-lg-1 p-md-0 mb-sm-1">
 			{% if page.c_card_rp == 'True'%}<div class="card" style="background-color: rgba(250,250,250,0.88);" >{% endif %}
-			{% if page.c_includ_rp != 'None'%}{% include page.c_includ_rp %}{% endif %}
+			{% comment %} {% if page.c_includ_rp != 'None'%}{% include page.c_includ_rp %}{% endif %} {% endcomment %}
 			{% block right_panel %}
 			{% endblock %}
 			{% if not request.user.is_authenticated and page.p_right and not "account/" in request.path %}