diff --git a/project/context_processors.py b/project/context_processors.py index 2ac5769e..cd2f0140 100644 --- a/project/context_processors.py +++ b/project/context_processors.py @@ -2,7 +2,6 @@ from django.db.models import Func, F from django.utils.timezone import now from paymentwall.pingback import Pingback from django.contrib.auth import get_user_model -from django.conf import settings from apps.config.models import Config from apps.content.models import Banner from apps.payment.models import SchoolPayment @@ -55,4 +54,5 @@ def referrer(request): def settings(request): + from django.conf import settings return {'settings': settings} diff --git a/project/templates/blocks/mixpanel.html b/project/templates/blocks/mixpanel.html deleted file mode 100644 index e71a9121..00000000 --- a/project/templates/blocks/mixpanel.html +++ /dev/null @@ -1,9 +0,0 @@ -{% block mixpanel %} - - - -{% endblock mixpanel %} diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index 8c918a26..783964ff 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -33,35 +33,12 @@ {% include 'templates/blocks/lil_store_js.html' %} {% block pre_app_js %}{% endblock pre_app_js %} - - {% comment %} ROISTAT {% endcomment %} - - - - {% block foot_js %}{% endblock foot_js %} {% endblock layer_body %} diff --git a/project/templates/lilcity/layer.html b/project/templates/lilcity/layer.html index 34915139..50245a19 100644 --- a/project/templates/lilcity/layer.html +++ b/project/templates/lilcity/layer.html @@ -47,70 +47,39 @@ } } - + {% if settings.DEV_SERVER or settings.DEBUG %} + + + + {% else %} + + + + {% endif %} {% block layer_head %}{% endblock layer_head %}
{% block layer_body %} {% endblock layer_body %} - - - - - - - - - - - - {% include "templates/blocks/mixpanel.html" %} + {% if settings.DEV_SERVER or settings.DEBUG %} + + + + {% else %} + + + + {% endif %}