dnscms: migrate to uv, remove wagtail-wordpress-import dependency

This commit is contained in:
2025-07-21 03:52:30 +02:00
parent 90f658a77e
commit a7bbc0730d
13 changed files with 695 additions and 1272 deletions
-1
View File
@@ -37,7 +37,6 @@ INSTALLED_APPS = [
"news",
"openinghours",
# end cms apps
"wagtail_wordpress_import",
"grapple",
"graphene_django",
"wagtail.contrib.forms",
+13
View File
@@ -0,0 +1,13 @@
# localhost oidc
# client id w8Xh7KmILy77aw9RRNfJDCxrKMNIi6kSd8thDWNr
# secret D3Urewsp6dkmsvBzPPgNO8tRz98cnXmREAN3sWAdSCbIkCikKl0quk7QinADIhGTuCH2FwkTn0GsJouxrUdDrCkvlNtFJfOtugjZBQ5IC35FCrEoZr8z77jwveWg9upI
OIDC_RP_CLIENT_ID = "w8Xh7KmILy77aw9RRNfJDCxrKMNIi6kSd8thDWNr"
OIDC_RP_CLIENT_SECRET = "D3Urewsp6dkmsvBzPPgNO8tRz98cnXmREAN3sWAdSCbIkCikKl0quk7QinADIhGTuCH2FwkTn0GsJouxrUdDrCkvlNtFJfOtugjZBQ5IC35FCrEoZr8z77jwveWg9upI"
OIDC_OP_AUTHORIZATION_ENDPOINT = "http://127.0.0.1:9000/api/oidc/authorize/"
OIDC_OP_TOKEN_ENDPOINT = "http://127.0.0.1:9000/api/oidc/token/"
OIDC_OP_USER_ENDPOINT = "http://127.0.0.1:9000/api/oidc/userinfo/"
LOGIN_REDIRECT_URL = "http://127.0.0.8000/"
LOGOUT_REDIRECT_URL = "http://127.0.0.8000/"
+17
View File
@@ -0,0 +1,17 @@
from django.db import models
from wagtail.models import Page
# https://github.com/wagtail/wagtail-wordpress-import/blob/main/wagtail_wordpress_import/models.py
class WPImportedPageMixin(Page):
wp_post_id = models.IntegerField(blank=True, null=True)
wp_post_type = models.CharField(max_length=255, blank=True, null=True)
wp_link = models.TextField(blank=True, null=True)
wp_raw_content = models.TextField(blank=True, null=True)
wp_processed_content = models.TextField(blank=True, null=True)
wp_block_json = models.TextField(blank=True, null=True)
wp_normalized_styles = models.TextField(blank=True, null=True)
wp_post_meta = models.JSONField(blank=True, null=True)
class Meta:
abstract = True