From dcdae529897aa18e4dbd4a58b3cd5d9db8c1cb49 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Thu, 12 Dec 2024 11:13:03 +0100 Subject: [PATCH] Remove EthicalAd URLs (#11843) We are not serving EthicalAds from Read the Docs anymore. We are hitting the EthicalAds server directly using Addons. Matches https://github.com/readthedocs/readthedocs-ext/pull/563 --- readthedocs/api/v2/urls.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/readthedocs/api/v2/urls.py b/readthedocs/api/v2/urls.py index 42b354d00be..673b2b6f00f 100644 --- a/readthedocs/api/v2/urls.py +++ b/readthedocs/api/v2/urls.py @@ -1,6 +1,5 @@ """Define routes between URL paths and views/endpoints.""" -from django.conf import settings from django.urls import include, path, re_path from rest_framework import routers @@ -110,11 +109,3 @@ urlpatterns += [ path("webhook/stripe/", StripeEventView.as_view(), name="api_webhook_stripe"), ] - -if "readthedocsext.donate" in settings.INSTALLED_APPS: - # pylint: disable=import-error - from readthedocsext.donate.restapi.urls import urlpatterns as sustainability_urls - - urlpatterns += [ - path("sustainability/", include(sustainability_urls)), - ]