prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Not really possible to override settings
  ## Description
  I want to override the mathsar settings in order to allow LDAP login using django-auth-ldap. I changed the `config/settings/production.py` file that mentions: `# Override default settings                ` and added the needed configuration. 
  
  This worked fine however that file is under version control so if it is changed on the origin I'll get a conflict and would need to also merge my changes. The usual way to implement this functionality is to add a *non tracked* `local.py` file that would contain any extra configuration for each environment (either dev or production) and import *that* file from the corresponding file. I.e the production.py would be changed to:
  
  ```python
  # Override default settings               
  
  try:
      from .local import *
  except ImportError:
      pass
  ```
  
  This way, if the local.py file is there it will be used to override the config but if it isnt' there it will be ignored. 
  
  ## Expected behavior
  Being able to override django settings for my environment *without* keeping a fork.
  
  ## To Reproduce
  Change the production.py file and you'll see that it's version controlled so it can't be easily changed!
  
  ## Environment
  Not needed
  
  ## Additional context
  I'd be happy to provide a PR implementing the functionality described here, i.e allow an untracked local.py file to override django settings for each *user/environment*.
  
  </issue>
  <code>
  [start of config/settings/development.py]
  1 from config.settings.common_settings import * # noqa
  2 
  3 # Override default settings
  4
  [end of config/settings/development.py]
  [start of config/settings/production.py]
  1 from config.settings.common_settings import * # noqa
  2 
  3 # Override default settings
  4
  [end of config/settings/production.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/config/settings/development.py b/config/settings/development.py
  --- a/config/settings/development.py
  +++ b/config/settings/development.py
  @@ -1,3 +1,10 @@
   from config.settings.common_settings import * # noqa
   
   # Override default settings
  +
  +
  +# Use a local.py module for settings that shouldn't be version tracked
  +try:
  +    from .local import * # noqa
  +except ImportError:
  +    pass
  diff --git a/config/settings/production.py b/config/settings/production.py
  --- a/config/settings/production.py
  +++ b/config/settings/production.py
  @@ -1,3 +1,10 @@
   from config.settings.common_settings import * # noqa
   
   # Override default settings
  +
  +
  +# Use a local.py module for settings that shouldn't be version tracked
  +try:
  +    from .local import * # noqa 
  +except ImportError:
  +    pass
  
verification_info: {"golden_diff": "diff --git a/config/settings/development.py b/config/settings/development.py\n--- a/config/settings/development.py\n+++ b/config/settings/development.py\n@@ -1,3 +1,10 @@\n from config.settings.common_settings import * # noqa\n \n # Override default settings\n+\n+\n+# Use a local.py module for settings that shouldn't be version tracked\n+try:\n+    from .local import * # noqa\n+except ImportError:\n+    pass\ndiff --git a/config/settings/production.py b/config/settings/production.py\n--- a/config/settings/production.py\n+++ b/config/settings/production.py\n@@ -1,3 +1,10 @@\n from config.settings.common_settings import * # noqa\n \n # Override default settings\n+\n+\n+# Use a local.py module for settings that shouldn't be version tracked\n+try:\n+    from .local import * # noqa \n+except ImportError:\n+    pass\n", "issue": "Not really possible to override settings\n## Description\r\nI want to override the mathsar settings in order to allow LDAP login using django-auth-ldap. I changed the `config/settings/production.py` file that mentions: `# Override default settings                ` and added the needed configuration. \r\n\r\nThis worked fine however that file is under version control so if it is changed on the origin I'll get a conflict and would need to also merge my changes. The usual way to implement this functionality is to add a *non tracked* `local.py` file that would contain any extra configuration for each environment (either dev or production) and import *that* file from the corresponding file. I.e the production.py would be changed to:\r\n\r\n```python\r\n# Override default settings               \r\n\r\ntry:\r\n    from .local import *\r\nexcept ImportError:\r\n    pass\r\n```\r\n\r\nThis way, if the local.py file is there it will be used to override the config but if it isnt' there it will be ignored. \r\n\r\n## Expected behavior\r\nBeing able to override django settings for my environment *without* keeping a fork.\r\n\r\n## To Reproduce\r\nChange the production.py file and you'll see that it's version controlled so it can't be easily changed!\r\n\r\n## Environment\r\nNot needed\r\n\r\n## Additional context\r\nI'd be happy to provide a PR implementing the functionality described here, i.e allow an untracked local.py file to override django settings for each *user/environment*.\n", "before_files": [{"content": "from config.settings.common_settings import * # noqa\n\n# Override default settings\n", "path": "config/settings/development.py"}, {"content": "from config.settings.common_settings import * # noqa\n\n# Override default settings\n", "path": "config/settings/production.py"}]}