From 6cfb961490990862bdbd04ceec0b048e942d1593 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 01:57:43 +0300 Subject: [PATCH 1/9] 0.4.50 fix 403 --- templates/tb_base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/tb_base.html b/templates/tb_base.html index 54fa3ce..35bd549 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -20,7 +20,7 @@ - {% csrf_token %} +{# {% csrf_token %}#}
{% include "blocks/b_header.html" %} {% include "blocks/b_curtain.html" %} From dfa11604dfe5077337dabce4d193dcbea0976511 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 02:06:42 +0300 Subject: [PATCH 2/9] 0.4.51 fix 403 --- templates/tb_base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/tb_base.html b/templates/tb_base.html index 35bd549..615aa33 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -20,7 +20,7 @@ -{# {% csrf_token %}#} + {% csrf_token %}
{% include "blocks/b_header.html" %} {% include "blocks/b_curtain.html" %} From 666b04b77243a6d47b54c2b02db681a594246ff4 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 02:11:11 +0300 Subject: [PATCH 3/9] 0.4.52 fix 403 --- static/aerbimJS.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/aerbimJS.js b/static/aerbimJS.js index f328ade..6de0a05 100644 --- a/static/aerbimJS.js +++ b/static/aerbimJS.js @@ -43,6 +43,7 @@ function renderContent (el=null) { } else { data['section_url'] = el.dataset['url'] } + data['csrfmiddlewaretoken'] = $('input[name=csrfmiddlewaretoken]').val(); let language = $('html').attr('lang'); data['lang'] = language $.ajax({ From 000841b20e23ee2ada6e9c0eb595960a5f0f7f0c Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 02:16:12 +0300 Subject: [PATCH 4/9] 0.4.53 fix 403 --- pAerBim/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pAerBim/settings.py b/pAerBim/settings.py index f30e46f..3a5ae6f 100644 --- a/pAerBim/settings.py +++ b/pAerBim/settings.py @@ -28,6 +28,9 @@ DEBUG = True ALLOWED_HOSTS = ['*'] +CSRF_TRUSTED_ORIGINS = ['https://aerbim.com/'] +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') + # Application definition INSTALLED_APPS = [ From 7bddf0abd631c7fc83d5906edfd987e8cd48c73b Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 02:21:50 +0300 Subject: [PATCH 5/9] 0.4.54 fix 403 --- ServicesApp/js_views.py | 3 ++- pAerBim/settings.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ServicesApp/js_views.py b/ServicesApp/js_views.py index 29e701c..fb8aa7f 100644 --- a/ServicesApp/js_views.py +++ b/ServicesApp/js_views.py @@ -15,8 +15,9 @@ from django.template.loader import render_to_string from django.urls import reverse from .funcs import * from django.utils.translation import activate, get_language_info +from django.views.decorators.csrf import csrf_exempt - +@csrf_exempt def get_content_for_section_ajax(request): if request.method != 'POST': diff --git a/pAerBim/settings.py b/pAerBim/settings.py index 3a5ae6f..de3929c 100644 --- a/pAerBim/settings.py +++ b/pAerBim/settings.py @@ -28,8 +28,8 @@ DEBUG = True ALLOWED_HOSTS = ['*'] -CSRF_TRUSTED_ORIGINS = ['https://aerbim.com/'] -SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +# CSRF_TRUSTED_ORIGINS = ['https://aerbim.com/'] +# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # Application definition From c4259a0ad7272603a75c913b89ae2d8bf38e4514 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 02:26:07 +0300 Subject: [PATCH 6/9] 0.4.55 fix 403 --- pAerBim/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pAerBim/settings.py b/pAerBim/settings.py index de3929c..57657db 100644 --- a/pAerBim/settings.py +++ b/pAerBim/settings.py @@ -64,7 +64,7 @@ MIDDLEWARE = [ 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', + # 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', From 323aebc24e5bb8aa83679408f595025bab2711b6 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 16:51:20 +0300 Subject: [PATCH 7/9] 0.4.56 fix 403 --- pAerBim/settings.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pAerBim/settings.py b/pAerBim/settings.py index 57657db..72bfffc 100644 --- a/pAerBim/settings.py +++ b/pAerBim/settings.py @@ -27,9 +27,8 @@ DEBUG = True ALLOWED_HOSTS = ['*'] - -# CSRF_TRUSTED_ORIGINS = ['https://aerbim.com/'] -# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +CSRF_TRUSTED_ORIGINS = ['https://aerbim.com'] # Application definition @@ -64,7 +63,7 @@ MIDDLEWARE = [ 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', - # 'django.middleware.csrf.CsrfViewMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', From da47f10e76e06366bf271b1457ffb205e97625c8 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 18:09:52 +0300 Subject: [PATCH 8/9] 0.4.57 form placeholder change --- GeneralApp/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GeneralApp/forms.py b/GeneralApp/forms.py index 181fa73..bc59d09 100644 --- a/GeneralApp/forms.py +++ b/GeneralApp/forms.py @@ -13,7 +13,7 @@ class FeedbackForm(forms.Form): name = forms.CharField(label=_('Имя'), required=True) company = forms.CharField(label=_('Компания'), required=True) - contacts = forms.CharField(label=_('Контактные данные'), required=True) + contacts = forms.CharField(label=_('Ваш email или телефон'), required=True) description = forms.CharField(label=_('Тематика запроса'), required=True) agreement = forms.BooleanField( From 2fbe0605a2a2cc92b5c9546bfa3742ec2bd12c18 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 12 Jan 2024 18:13:40 +0300 Subject: [PATCH 9/9] 0.4.58 how icons increase --- static/aerbimCSS.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/aerbimCSS.css b/static/aerbimCSS.css index a7fa8f1..bc781a7 100644 --- a/static/aerbimCSS.css +++ b/static/aerbimCSS.css @@ -450,8 +450,8 @@ body.n_scroll{ .photo_container_descript_process{ text-align: center; - width: 65px; - height: 65px; + width: 150px; + height: 150px; } .txt_descript_process.standart_txt{ @@ -463,8 +463,8 @@ body.n_scroll{ /*text-transform: uppercase;*/ } .img_descript_process{ - width: 65px; - height: 65px; + width: 150px; + height: 150px; object-fit: contain; object-position: bottom; }