From ea9cf12b99d381299c53cb9683fc587521130ce4 Mon Sep 17 00:00:00 2001 From: gzbender Date: Mon, 30 Sep 2019 22:53:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=81=D1=82=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=81=D1=87=D1=91=D1=82=D1=87=D0=B8=D0=BA=20GTM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/context_processors.py | 2 +- project/templates/lilcity/index.html | 23 -------- project/templates/lilcity/layer.html | 87 +++++++++------------------- web/src/js/app.js | 1 - web/webpack.config.js | 1 - 5 files changed, 29 insertions(+), 85 deletions(-) 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/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 %} diff --git a/web/src/js/app.js b/web/src/js/app.js index a59403d6..7f7278d0 100644 --- a/web/src/js/app.js +++ b/web/src/js/app.js @@ -16,7 +16,6 @@ import "./modules/courses"; import "./modules/comments"; import "./modules/password-show"; import "./modules/notification"; -import "./modules/mixpanel"; import "../sass/app.sass"; diff --git a/web/webpack.config.js b/web/webpack.config.js index 24404936..35d16596 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -18,7 +18,6 @@ module.exports = { freeLessons: "./src/js/pages/free-lessons.js", userGalleryEdit: "./src/js/pages/user-gallery-edit.js", pay: "./src/js/pages/pay.js", - mixpanel: "./src/js/third_party/mixpanel-2-latest.js", sprite: glob('./src/icons/*.svg'), images: glob('./src/img/*.*'), imagesCertificates: glob('./src/img/user-certificates/*'),