prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Plugging it in area is not accessible on dev server
  This link should work: https://cs-unplugged-dev.appspot.com/plugging-it-in/
  
  </issue>
  <code>
  [start of csunplugged/config/urls.py]
  1 """URL configuration for the Django system.
  2 
  3 The `urlpatterns` list routes URLs to views. For more information please see:
  4     https://docs.djangoproject.com/en/dev/topics/http/urls/
  5 """
  6 
  7 from django.conf import settings
  8 from django.urls import include, path
  9 from django.conf.urls.i18n import i18n_patterns
  10 from django.contrib import admin
  11 
  12 urlpatterns = i18n_patterns(
  13     path('', include('general.urls', namespace='general')),
  14     path('topics/', include('topics.urls', namespace='topics')),
  15     path('resources/', include('resources.urls', namespace='resources')),
  16     path('at-home/', include('at_home.urls', namespace='at_home')),
  17 )
  18 
  19 urlpatterns += [
  20     path('', include('classic.urls')),
  21     path('en/search/', include('search.urls', namespace='search')),
  22     path('admin/', admin.site.urls),
  23 ]
  24 
  25 if not settings.DJANGO_PRODUCTION:
  26     urlpatterns += [
  27         path('plugging-it-in/', include('plugging_it_in.urls', namespace='plugging_it_in')),
  28     ]
  29 
  30 if settings.DEBUG:  # pragma: no cover
  31     import debug_toolbar
  32     urlpatterns += [
  33         path('__debug__/', include(debug_toolbar.urls)),
  34     ]
  35     urlpatterns += i18n_patterns(
  36         path('__dev__/', include('dev.urls', namespace='dev')),
  37     )
  38     # These patterns allows these error pages to be debugged during development.
  39     from django.views import defaults
  40     urlpatterns += [
  41         path('400/', defaults.bad_request, kwargs={'exception': Exception('Bad request')}),
  42         path('403/', defaults.permission_denied, kwargs={'exception': Exception('Permissin denied')}),
  43         path('404/', defaults.page_not_found, kwargs={'exception': Exception('Page not found')}),
  44         path('500/', defaults.server_error),
  45     ]
  46
  [end of csunplugged/config/urls.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/csunplugged/config/urls.py b/csunplugged/config/urls.py
  --- a/csunplugged/config/urls.py
  +++ b/csunplugged/config/urls.py
  @@ -8,6 +8,8 @@
   from django.urls import include, path
   from django.conf.urls.i18n import i18n_patterns
   from django.contrib import admin
  +import environ
  +env = environ.Env()
   
   urlpatterns = i18n_patterns(
       path('', include('general.urls', namespace='general')),
  @@ -22,7 +24,7 @@
       path('admin/', admin.site.urls),
   ]
   
  -if not settings.DJANGO_PRODUCTION:
  +if not env("DEPLOYMENT", default=None) == "prod":
       urlpatterns += [
           path('plugging-it-in/', include('plugging_it_in.urls', namespace='plugging_it_in')),
       ]
  
verification_info: {"golden_diff": "diff --git a/csunplugged/config/urls.py b/csunplugged/config/urls.py\n--- a/csunplugged/config/urls.py\n+++ b/csunplugged/config/urls.py\n@@ -8,6 +8,8 @@\n from django.urls import include, path\n from django.conf.urls.i18n import i18n_patterns\n from django.contrib import admin\n+import environ\n+env = environ.Env()\n \n urlpatterns = i18n_patterns(\n     path('', include('general.urls', namespace='general')),\n@@ -22,7 +24,7 @@\n     path('admin/', admin.site.urls),\n ]\n \n-if not settings.DJANGO_PRODUCTION:\n+if not env(\"DEPLOYMENT\", default=None) == \"prod\":\n     urlpatterns += [\n         path('plugging-it-in/', include('plugging_it_in.urls', namespace='plugging_it_in')),\n     ]\n", "issue": "Plugging it in area is not accessible on dev server\nThis link should work: https://cs-unplugged-dev.appspot.com/plugging-it-in/\n", "before_files": [{"content": "\"\"\"URL configuration for the Django system.\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n    https://docs.djangoproject.com/en/dev/topics/http/urls/\n\"\"\"\n\nfrom django.conf import settings\nfrom django.urls import include, path\nfrom django.conf.urls.i18n import i18n_patterns\nfrom django.contrib import admin\n\nurlpatterns = i18n_patterns(\n    path('', include('general.urls', namespace='general')),\n    path('topics/', include('topics.urls', namespace='topics')),\n    path('resources/', include('resources.urls', namespace='resources')),\n    path('at-home/', include('at_home.urls', namespace='at_home')),\n)\n\nurlpatterns += [\n    path('', include('classic.urls')),\n    path('en/search/', include('search.urls', namespace='search')),\n    path('admin/', admin.site.urls),\n]\n\nif not settings.DJANGO_PRODUCTION:\n    urlpatterns += [\n        path('plugging-it-in/', include('plugging_it_in.urls', namespace='plugging_it_in')),\n    ]\n\nif settings.DEBUG:  # pragma: no cover\n    import debug_toolbar\n    urlpatterns += [\n        path('__debug__/', include(debug_toolbar.urls)),\n    ]\n    urlpatterns += i18n_patterns(\n        path('__dev__/', include('dev.urls', namespace='dev')),\n    )\n    # These patterns allows these error pages to be debugged during development.\n    from django.views import defaults\n    urlpatterns += [\n        path('400/', defaults.bad_request, kwargs={'exception': Exception('Bad request')}),\n        path('403/', defaults.permission_denied, kwargs={'exception': Exception('Permissin denied')}),\n        path('404/', defaults.page_not_found, kwargs={'exception': Exception('Page not found')}),\n        path('500/', defaults.server_error),\n    ]\n", "path": "csunplugged/config/urls.py"}]}