diff --git a/project/context_processors.py b/project/context_processors.py index cd2f0140..2ac5769e 100644 --- a/project/context_processors.py +++ b/project/context_processors.py @@ -2,6 +2,7 @@ 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 @@ -54,5 +55,4 @@ 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 new file mode 100644 index 00000000..e71a9121 --- /dev/null +++ b/project/templates/blocks/mixpanel.html @@ -0,0 +1,9 @@ +{% block mixpanel %} + + + +{% endblock mixpanel %} diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index 783964ff..8c918a26 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -33,12 +33,35 @@ {% 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 50245a19..34915139 100644 --- a/project/templates/lilcity/layer.html +++ b/project/templates/lilcity/layer.html @@ -47,39 +47,70 @@ } } - {% if settings.DEV_SERVER or settings.DEBUG %} - - - - {% else %} - - - - {% endif %} + {% block layer_head %}{% endblock layer_head %}
{% block layer_body %} {% endblock layer_body %} - {% if settings.DEV_SERVER or settings.DEBUG %} - - - - {% else %} - - - - {% endif %} + + + + + + + + + + + + {% include "templates/blocks/mixpanel.html" %}