From f5a084684ae5caa3e583ebbd4bbcfd9540f25f95 Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 12 Nov 2024 20:05:07 +0300 Subject: [PATCH] 1.8.0 landing_mover --- GeneralApp/urls.py | 1 + GeneralApp/views.py | 21 +++++++++++++++++++++ templates/pages/p_mover_landing_page.html | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 templates/pages/p_mover_landing_page.html diff --git a/GeneralApp/urls.py b/GeneralApp/urls.py index 0066e4e..239389e 100644 --- a/GeneralApp/urls.py +++ b/GeneralApp/urls.py @@ -6,6 +6,7 @@ from .views import * urlpatterns = [ path('', MainPage, name='main'), + path('mover_landing_page/', LandingMoverPage, name='mover_landing_page'), path('page//', StaticPageView, name='static_page'), path('test_code', test_code, name='test_code'), path('generate_routes//', generate_routes, name='generate_routes'), diff --git a/GeneralApp/views.py b/GeneralApp/views.py index 3c1efef..9933d76 100644 --- a/GeneralApp/views.py +++ b/GeneralApp/views.py @@ -148,7 +148,28 @@ def Page404(request, exeption=None): except Exception as e: return HttpResponse(str(e)) +def LandingMoverPage(request): + from .init_options import init_options + init_options() + + + print(f'LOCALE_PATHS = {str(settings.LOCALE_PATHS)}') + + page, is_created = StaticPage.objects.get_or_create(url='landing_mover') + + Dict = { + 'page': page, + } + + + + breadcrumbs_Dict = { + } + Dict.update({'breadcrumbs': breadcrumbs_Dict}) + + t = loader.get_template('pages/p_mover_landing_page.html') + return get_inter_http_response(t, Dict, request) def MainPage(request): diff --git a/templates/pages/p_mover_landing_page.html b/templates/pages/p_mover_landing_page.html new file mode 100644 index 0000000..94da756 --- /dev/null +++ b/templates/pages/p_mover_landing_page.html @@ -0,0 +1,11 @@ +{% extends 'tb_base.html' %} +{% load static %} +{% load i18n %} + +{% block meta %} +{% endblock %} + +{% block content %} + + +{% endblock %} \ No newline at end of file