From 2e47956d077f30d16c5f837e0305311a36f08bb2 Mon Sep 17 00:00:00 2001 From: Park Hyunwoo Date: Sun, 9 Mar 2025 15:55:09 +0900 Subject: [PATCH 1/2] Remove useless templates --- .../templates/pythonkr/pao_communites.html | 22 ------------------ .../templates/pythonkr/pao_event.html | 10 -------- .../templates/pythonkr/pao_events.html | 23 ------------------- .../templates/pythonkr/pao_home copy.html | 8 ------- .../templates/pythonkr/pao_people.html | 21 ----------------- .../templates/pythonkr/pao_person.html | 11 --------- .../templates/pythonkr/pao_sponsor.html | 15 ------------ .../templates/pythonkr/pao_sponsors.html | 23 ------------------- 8 files changed, 133 deletions(-) delete mode 100644 pythonkr_backend/pythonkr/templates/pythonkr/pao_communites.html delete mode 100644 pythonkr_backend/pythonkr/templates/pythonkr/pao_event.html delete mode 100644 pythonkr_backend/pythonkr/templates/pythonkr/pao_events.html delete mode 100644 pythonkr_backend/pythonkr/templates/pythonkr/pao_home copy.html delete mode 100644 pythonkr_backend/pythonkr/templates/pythonkr/pao_people.html delete mode 100644 pythonkr_backend/pythonkr/templates/pythonkr/pao_person.html delete mode 100644 pythonkr_backend/pythonkr/templates/pythonkr/pao_sponsor.html delete mode 100644 pythonkr_backend/pythonkr/templates/pythonkr/pao_sponsors.html diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pao_communites.html b/pythonkr_backend/pythonkr/templates/pythonkr/pao_communites.html deleted file mode 100644 index 78aa4d2..0000000 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pao_communites.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends 'pao/pao_base.html' %} -{% load wagtailcore_tags %} - -{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} - -{% block content %} -
-

{{ page.title }} of Python Asia

- {% for community in page.get_children.live %} - -
-
{{ community.title }}
- {{ community.country }} -
-

{{ community.content | richtext }}

- details -
- {% empty %} - Sorry there is no {{ page.title }} - {% endfor %} -
-{% endblock %} \ No newline at end of file diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pao_event.html b/pythonkr_backend/pythonkr/templates/pythonkr/pao_event.html deleted file mode 100644 index 65a1eb6..0000000 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pao_event.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends 'pao/pao_base.html' %} -{% load wagtailcore_tags %} - -{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} - -{% block content %} - {{ page.title }} - {{ page.event_date }} - {{ page.content|richtext }} -{% endblock %} \ No newline at end of file diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pao_events.html b/pythonkr_backend/pythonkr/templates/pythonkr/pao_events.html deleted file mode 100644 index 398b0fa..0000000 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pao_events.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'pao/pao_base.html' %} -{% load wagtailcore_tags %} - -{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} - -{% block content %} -
-

Python Asia Events

-
- {% for event in page.get_children.live %} - -
-
{{ event.title }}
- {{ event.event_date }} -
-

{{ event.content | richtext }}

- details -
- {% empty %} - Sorry there is no Events - {% endfor %} -
-{% endblock %} \ No newline at end of file diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pao_home copy.html b/pythonkr_backend/pythonkr/templates/pythonkr/pao_home copy.html deleted file mode 100644 index 49c0af0..0000000 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pao_home copy.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends 'pao/pao_base.html' %} -{% load wagtailcore_tags %} - -{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} - -{% block content %} - {{ page.body|richtext }} -{% endblock %} \ No newline at end of file diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pao_people.html b/pythonkr_backend/pythonkr/templates/pythonkr/pao_people.html deleted file mode 100644 index 0b17f86..0000000 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pao_people.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends 'pao/pao_base.html' %} -{% load wagtailcore_tags %} - -{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} - -{% block content %} -

People of Python Asia

- {% for person in page.get_children.live %} - -
-
{{ person.title }}
- {{ person.country }} -
-

{{ person.content | richtext }}

- details -
- {% empty %} - Sorry there is no People - {% endfor %} -
-{% endblock %} \ No newline at end of file diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pao_person.html b/pythonkr_backend/pythonkr/templates/pythonkr/pao_person.html deleted file mode 100644 index 48f78d1..0000000 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pao_person.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends 'pao/pao_base.html' %} -{% load wagtailcore_tags %} - -{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} - -{% block content %} - {{ page.name }} - {{ page.year }} - {{ page.position }} - {{ page.country }} -{% endblock %} \ No newline at end of file diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pao_sponsor.html b/pythonkr_backend/pythonkr/templates/pythonkr/pao_sponsor.html deleted file mode 100644 index bef6b85..0000000 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pao_sponsor.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'pao/pao_base.html' %} -{% load wagtailcore_tags %} -{% load wagtailimages_tags %} - -{% block title %}Home - Python Asia - {{ page.title }}{% endblock title %} - -{% block content %} - {{ page.body|richtext }} - - {{ page.title }} - {% image page.image original %} - {{ page.year }} - {{ page.sponsor_type }} - {{ page.description }} -{% endblock %} \ No newline at end of file diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pao_sponsors.html b/pythonkr_backend/pythonkr/templates/pythonkr/pao_sponsors.html deleted file mode 100644 index 310b5e9..0000000 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pao_sponsors.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'pao/pao_base.html' %} -{% load wagtailcore_tags %} -{% load wagtailimages_tags %} - -{% block title %}Home - Python Asia - {{ page.title }}{% endblock %} - -{% block content %} -

Sponsors of Python Asia

- {% for sponsor in page.get_children.live %} -
-
-
-
-
{{ sponsor.title }}
- {% image sponsor.image original %} -
-
-
- {% empty %} - Sorry there is no Sponsors - {% endfor %} -
-{% endblock %} \ No newline at end of file From a63f4da9b8db184ffc514ca94470e47efe4c4cb7 Mon Sep 17 00:00:00 2001 From: Park Hyunwoo Date: Sun, 9 Mar 2025 15:55:34 +0900 Subject: [PATCH 2/2] Fix page template base issue --- pythonkr_backend/pythonkr/templates/pythonkr/pk_home.html | 4 ++-- .../pythonkr/templates/pythonkr/pk_markdown_doc.html | 4 ++-- pythonkr_backend/pythonkr/templates/pythonkr/pk_page.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pk_home.html b/pythonkr_backend/pythonkr/templates/pythonkr/pk_home.html index 49c0af0..53a48b3 100644 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pk_home.html +++ b/pythonkr_backend/pythonkr/templates/pythonkr/pk_home.html @@ -1,8 +1,8 @@ -{% extends 'pao/pao_base.html' %} +{% extends 'pk/pk_base.html' %} {% load wagtailcore_tags %} {% block title %}Home - Python Asia - {{ page.title }}{% endblock %} {% block content %} {{ page.body|richtext }} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pk_markdown_doc.html b/pythonkr_backend/pythonkr/templates/pythonkr/pk_markdown_doc.html index aef31f9..9cfb05c 100644 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pk_markdown_doc.html +++ b/pythonkr_backend/pythonkr/templates/pythonkr/pk_markdown_doc.html @@ -1,8 +1,8 @@ -{% extends 'pao/pao_base.html' %} +{% extends 'pk/pk_base.html' %} {% load wagtailcore_tags %} {% block title %}Home - Python Asia - {{ page.title }}{% endblock %} {% block content %} {{ page.content|richtext }} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/pythonkr_backend/pythonkr/templates/pythonkr/pk_page.html b/pythonkr_backend/pythonkr/templates/pythonkr/pk_page.html index 49c0af0..53a48b3 100644 --- a/pythonkr_backend/pythonkr/templates/pythonkr/pk_page.html +++ b/pythonkr_backend/pythonkr/templates/pythonkr/pk_page.html @@ -1,8 +1,8 @@ -{% extends 'pao/pao_base.html' %} +{% extends 'pk/pk_base.html' %} {% load wagtailcore_tags %} {% block title %}Home - Python Asia - {{ page.title }}{% endblock %} {% block content %} {{ page.body|richtext }} -{% endblock %} \ No newline at end of file +{% endblock %}