0.12.28 localization routines

This commit is contained in:
SDE
2024-04-02 16:06:45 +03:00
parent 92e3d76b7e
commit c29cc25581
9 changed files with 1605 additions and 540 deletions

View File

@@ -16,7 +16,7 @@ import json
from datetime import datetime, time, timedelta
from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync
from GeneralApp.funcs import get_and_set_lang
@login_required(login_url='/profile/login/')
@@ -25,6 +25,8 @@ def subscribe_now_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -77,6 +79,8 @@ def show_cur_subscribe_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
html = get_profile_subscribe_page_content_html(request)
return JsonResponse({'html': html}, status=200)