From 8defa6719cedfaac220a5c68c6acbcd645c3add8 Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Sun, 19 Aug 2018 19:38:14 +0300 Subject: [PATCH] update 500 page --- flatpages_ext/urls.py | 7 ++++--- templates/500.html | 2 +- templates/flatpages/about_us.html | 34 +++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 templates/flatpages/about_us.html diff --git a/flatpages_ext/urls.py b/flatpages_ext/urls.py index 545e406..b9b69bf 100644 --- a/flatpages_ext/urls.py +++ b/flatpages_ext/urls.py @@ -1,7 +1,8 @@ from django.conf.urls import url +from django.urls import path + from . import views urlpatterns = [ - url(r'^', views.landing, name='landing'), - #url(r'^$', views.home, name='home'), -] \ No newline at end of file + path('about-us/', views.flatpage, {'url': '/about-us/'}, name='about'), +] diff --git a/templates/500.html b/templates/500.html index 391dc2d..55d4d2b 100644 --- a/templates/500.html +++ b/templates/500.html @@ -92,7 +92,7 @@
diff --git a/templates/flatpages/about_us.html b/templates/flatpages/about_us.html new file mode 100644 index 0000000..0eb32a0 --- /dev/null +++ b/templates/flatpages/about_us.html @@ -0,0 +1,34 @@ +{% extends 'base.html' %} +{% load static %} +{% block content %} +
+
+
+
О компании (full-page)
+
+
+
Компания «Русские програмы»
+
+

It is a long established fact that a reader will be distracted by the readable content of + a page when looking at its layout. The point of using Lorem Ipsum is that it has a + more-or-less normal distribution of letters, as opposed to using 'Content here, content + here', making it look like readable English. Many desktop publishing packages and web + page editors now use Lorem Ipsum as their default model text, and a search for 'lorem + ipsum' will uncover many web sites still in their infancy. Various versions have evolved + over the years, sometimes by accident, sometimes on purpose (injected humour and the + like). +

+

It is a long established fact that a reader will be distracted by the readable content + of a page when looking at its layout. The point of using Lorem Ipsum is that it has a + more-or-less normal distribution of letters, as opposed to using 'Content here, content + here', making it look like readable English. Many desktop publishing packages and web + page editors now use Lorem Ipsum as their default model text, and a search for 'lorem + ipsum' will uncover many web sites still in their infancy. Various versions have evolved + over the years, sometimes by accident, sometimes on purpose (injected humour and the + like).

+
+
+
+
+
+{% endblock content %}