From ff3c5510a3c38bb7afff73e8f03592b0640da7b4 Mon Sep 17 00:00:00 2001 From: gpetrak Date: Thu, 8 May 2025 10:17:09 +0300 Subject: [PATCH 1/3] keyerror logs fix --- src/project_name/urls.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/project_name/urls.py b/src/project_name/urls.py index 95be19c9..cd96c293 100644 --- a/src/project_name/urls.py +++ b/src/project_name/urls.py @@ -20,6 +20,9 @@ from geonode.urls import urlpatterns +# global handler 500 view +handler500 = "geonode.views.err500" + """ # You can register your own urlpatterns here urlpatterns = [ From 9dc0ed4cbaf2cefda91dadc5fc0f729036ba35ce Mon Sep 17 00:00:00 2001 From: gpetrak Date: Thu, 8 May 2025 17:58:02 +0300 Subject: [PATCH 2/3] improving the import of the handler500 --- src/project_name/urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/project_name/urls.py b/src/project_name/urls.py index cd96c293..18a2d246 100644 --- a/src/project_name/urls.py +++ b/src/project_name/urls.py @@ -13,15 +13,15 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License +# You should have received a copy of the GNU General Public Licenses # along with this program. If not, see . # ######################################################################### -from geonode.urls import urlpatterns - -# global handler 500 view -handler500 = "geonode.views.err500" +# Do not remove handler500 import. It is required to re-export +# the custom error page handler for the GeoNode project +# related issue: https://github.com/GeoNode/geonode-project/issues/570 +from geonode.urls import urlpatterns, handler500 # noqa """ # You can register your own urlpatterns here From ca369dbbd61284907f1c35d952ead30a37a03da7 Mon Sep 17 00:00:00 2001 From: gpetrak Date: Thu, 8 May 2025 18:00:28 +0300 Subject: [PATCH 3/3] a small typo --- src/project_name/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project_name/urls.py b/src/project_name/urls.py index 18a2d246..33f20de0 100644 --- a/src/project_name/urls.py +++ b/src/project_name/urls.py @@ -13,7 +13,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -# You should have received a copy of the GNU General Public Licenses +# You should have received a copy of the GNU General Public License # along with this program. If not, see . # #########################################################################