We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Server error page won't render because of missing context
If a view throws a 500 error, the 500.html should get rendered. We recently updated the template to inherit from base.html, and now it will not render anymore because it is missing context variables (the 500 view is by default passed an empty context). 

I'm unsure if we should update the 500 view and add the missing context or if we should go back to not inheriting from base.html for the error views? 



--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `app/config/urls/challenge_subdomain.py`
Content:
```
1 from django.conf import settings
2 from django.urls import include, path
3 from django.views.generic import TemplateView
4 
5 from grandchallenge.challenges.views import ChallengeUpdate
6 
7 urlpatterns = [
8     path(
9         "robots.txt",
10         TemplateView.as_view(
11             template_name="robots.txt", content_type="text/plain"
12         ),
13         name="subdomain_robots_txt",
14     ),
15     path(
16         "evaluation/",
17         include("grandchallenge.evaluation.urls", namespace="evaluation"),
18     ),
19     path("teams/", include("grandchallenge.teams.urls", namespace="teams")),
20     path(
21         "participants/",
22         include("grandchallenge.participants.urls", namespace="participants"),
23     ),
24     path("admins/", include("grandchallenge.admins.urls", namespace="admins")),
25     path("update/", ChallengeUpdate.as_view(), name="challenge-update"),
26     path("summernote/", include("django_summernote.urls")),
27     path("", include("grandchallenge.pages.urls", namespace="pages")),
28 ]
29 
30 if settings.DEBUG and settings.ENABLE_DEBUG_TOOLBAR:
31     import debug_toolbar
32 
33     urlpatterns = [
34         path("__debug__/", include(debug_toolbar.urls))
35     ] + urlpatterns
36
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/app/config/urls/challenge_subdomain.py b/app/config/urls/challenge_subdomain.py
--- a/app/config/urls/challenge_subdomain.py
+++ b/app/config/urls/challenge_subdomain.py
@@ -4,6 +4,9 @@
 
 from grandchallenge.challenges.views import ChallengeUpdate
 
+handler500 = "grandchallenge.core.views.handler500"
+
+
 urlpatterns = [
     path(
         "robots.txt",

{"golden_diff": "diff --git a/app/config/urls/challenge_subdomain.py b/app/config/urls/challenge_subdomain.py\n--- a/app/config/urls/challenge_subdomain.py\n+++ b/app/config/urls/challenge_subdomain.py\n@@ -4,6 +4,9 @@\n \n from grandchallenge.challenges.views import ChallengeUpdate\n \n+handler500 = \"grandchallenge.core.views.handler500\"\n+\n+\n urlpatterns = [\n     path(\n         \"robots.txt\",\n", "issue": "Server error page won't render because of missing context\nIf a view throws a 500 error, the 500.html should get rendered. We recently updated the template to inherit from base.html, and now it will not render anymore because it is missing context variables (the 500 view is by default passed an empty context). \r\n\r\nI'm unsure if we should update the 500 view and add the missing context or if we should go back to not inheriting from base.html for the error views? \r\n\r\n\n", "before_files": [{"content": "from django.conf import settings\nfrom django.urls import include, path\nfrom django.views.generic import TemplateView\n\nfrom grandchallenge.challenges.views import ChallengeUpdate\n\nurlpatterns = [\n    path(\n        \"robots.txt\",\n        TemplateView.as_view(\n            template_name=\"robots.txt\", content_type=\"text/plain\"\n        ),\n        name=\"subdomain_robots_txt\",\n    ),\n    path(\n        \"evaluation/\",\n        include(\"grandchallenge.evaluation.urls\", namespace=\"evaluation\"),\n    ),\n    path(\"teams/\", include(\"grandchallenge.teams.urls\", namespace=\"teams\")),\n    path(\n        \"participants/\",\n        include(\"grandchallenge.participants.urls\", namespace=\"participants\"),\n    ),\n    path(\"admins/\", include(\"grandchallenge.admins.urls\", namespace=\"admins\")),\n    path(\"update/\", ChallengeUpdate.as_view(), name=\"challenge-update\"),\n    path(\"summernote/\", include(\"django_summernote.urls\")),\n    path(\"\", include(\"grandchallenge.pages.urls\", namespace=\"pages\")),\n]\n\nif settings.DEBUG and settings.ENABLE_DEBUG_TOOLBAR:\n    import debug_toolbar\n\n    urlpatterns = [\n        path(\"__debug__/\", include(debug_toolbar.urls))\n    ] + urlpatterns\n", "path": "app/config/urls/challenge_subdomain.py"}], "after_files": [{"content": "from django.conf import settings\nfrom django.urls import include, path\nfrom django.views.generic import TemplateView\n\nfrom grandchallenge.challenges.views import ChallengeUpdate\n\nhandler500 = \"grandchallenge.core.views.handler500\"\n\n\nurlpatterns = [\n    path(\n        \"robots.txt\",\n        TemplateView.as_view(\n            template_name=\"robots.txt\", content_type=\"text/plain\"\n        ),\n        name=\"subdomain_robots_txt\",\n    ),\n    path(\n        \"evaluation/\",\n        include(\"grandchallenge.evaluation.urls\", namespace=\"evaluation\"),\n    ),\n    path(\"teams/\", include(\"grandchallenge.teams.urls\", namespace=\"teams\")),\n    path(\n        \"participants/\",\n        include(\"grandchallenge.participants.urls\", namespace=\"participants\"),\n    ),\n    path(\"admins/\", include(\"grandchallenge.admins.urls\", namespace=\"admins\")),\n    path(\"update/\", ChallengeUpdate.as_view(), name=\"challenge-update\"),\n    path(\"summernote/\", include(\"django_summernote.urls\")),\n    path(\"\", include(\"grandchallenge.pages.urls\", namespace=\"pages\")),\n]\n\nif settings.DEBUG and settings.ENABLE_DEBUG_TOOLBAR:\n    import debug_toolbar\n\n    urlpatterns = [\n        path(\"__debug__/\", include(debug_toolbar.urls))\n    ] + urlpatterns\n", "path": "app/config/urls/challenge_subdomain.py"}]}