prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Clean up login form
  
  
  </issue>
  <code>
  [start of will_of_the_prophets/settings/__init__.py]
  1 """
  2 Django settings for will_of_the_prophets project.
  3 
  4 Generated by 'django-admin startproject' using Django 2.0.4.
  5 
  6 For more information on this file, see
  7 https://docs.djangoproject.com/en/2.0/topics/settings/
  8 
  9 For the full list of settings and their values, see
  10 https://docs.djangoproject.com/en/2.0/ref/settings/
  11 """
  12 
  13 import os
  14 
  15 import django_heroku
  16 
  17 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  18 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  19 
  20 
  21 # Quick-start development settings - unsuitable for production
  22 # See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
  23 
  24 # SECURITY WARNING: keep the secret key used in production secret!
  25 SECRET_KEY = os.environ.get(
  26     'SECRET_KEY', 'bah!osmx@cpaoulc-!eohvd3ldoy*^oki#l25-v6tvq04=6npz')
  27 
  28 # SECURITY WARNING: don't run with debug turned on in production!
  29 DEBUG = os.environ.get('DEBUG', False)
  30 
  31 ALLOWED_HOSTS = ['*.herokuapp.com', 'localhost']
  32 
  33 
  34 # Application definition
  35 
  36 INSTALLED_APPS = [
  37     'raven.contrib.django.raven_compat',
  38     'django.contrib.admin',
  39     'django.contrib.auth',
  40     'django.contrib.contenttypes',
  41     'django.contrib.sessions',
  42     'django.contrib.messages',
  43     'django.contrib.staticfiles',
  44     'sass_processor',
  45     'bootstrap',
  46     'will_of_the_prophets',
  47 ]
  48 
  49 MIDDLEWARE = [
  50     'django.middleware.security.SecurityMiddleware',
  51     'django.contrib.sessions.middleware.SessionMiddleware',
  52     'django.middleware.common.CommonMiddleware',
  53     'django.middleware.csrf.CsrfViewMiddleware',
  54     'django.contrib.auth.middleware.AuthenticationMiddleware',
  55     'django.contrib.messages.middleware.MessageMiddleware',
  56     'django.middleware.clickjacking.XFrameOptionsMiddleware',
  57 ]
  58 
  59 ROOT_URLCONF = 'will_of_the_prophets.urls'
  60 
  61 TEMPLATES = [
  62     {
  63         'BACKEND': 'django.template.backends.django.DjangoTemplates',
  64         'DIRS': [],
  65         'APP_DIRS': True,
  66         'OPTIONS': {
  67             'context_processors': [
  68                 'django.template.context_processors.debug',
  69                 'django.template.context_processors.request',
  70                 'django.contrib.auth.context_processors.auth',
  71                 'django.contrib.messages.context_processors.messages',
  72             ],
  73         },
  74     },
  75 ]
  76 
  77 WSGI_APPLICATION = 'will_of_the_prophets.wsgi.application'
  78 
  79 
  80 # Database
  81 # https://docs.djangoproject.com/en/2.0/ref/settings/#databases
  82 
  83 DATABASES = {
  84     'default': {
  85         'ENGINE': 'django.db.backends.sqlite3',
  86         'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  87     }
  88 }
  89 
  90 
  91 # Password validation
  92 # https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
  93 
  94 AUTH_PASSWORD_VALIDATORS = [
  95     {
  96         'NAME': ('django.contrib.auth.password_validation'
  97                  '.UserAttributeSimilarityValidator'),
  98     },
  99     {
  100         'NAME': ('django.contrib.auth.password_validation'
  101                  '.MinimumLengthValidator'),
  102     },
  103     {
  104         'NAME': ('django.contrib.auth.password_validation'
  105                  '.CommonPasswordValidator'),
  106     },
  107     {
  108         'NAME': ('django.contrib.auth.password_validation'
  109                  '.NumericPasswordValidator'),
  110     },
  111 ]
  112 
  113 
  114 # Internationalization
  115 # https://docs.djangoproject.com/en/2.0/topics/i18n/
  116 
  117 LANGUAGE_CODE = 'en-us'
  118 
  119 TIME_ZONE = 'UTC'
  120 
  121 USE_I18N = True
  122 
  123 USE_L10N = True
  124 
  125 USE_TZ = True
  126 
  127 
  128 # Static files (CSS, JavaScript, Images)
  129 # https://docs.djangoproject.com/en/2.0/howto/static-files/
  130 
  131 STATIC_URL = '/static/'
  132 
  133 STATICFILES_FINDERS = [
  134     'django.contrib.staticfiles.finders.FileSystemFinder',
  135     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  136     # https://github.com/jrief/django-sass-processor
  137     'sass_processor.finders.CssFinder',
  138 ]
  139 
  140 
  141 # django-sass-processor
  142 # https://github.com/jrief/django-sass-processor
  143 SASS_OUTPUT_STYLE = 'compressed'
  144 
  145 
  146 # Configure Django App for Heroku.
  147 django_heroku.settings(locals())
  148
  [end of will_of_the_prophets/settings/__init__.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/will_of_the_prophets/settings/__init__.py b/will_of_the_prophets/settings/__init__.py
  --- a/will_of_the_prophets/settings/__init__.py
  +++ b/will_of_the_prophets/settings/__init__.py
  @@ -42,6 +42,7 @@
       'django.contrib.messages',
       'django.contrib.staticfiles',
       'sass_processor',
  +    'widget_tweaks',
       'bootstrap',
       'will_of_the_prophets',
   ]
  
verification_info: {"golden_diff": "diff --git a/will_of_the_prophets/settings/__init__.py b/will_of_the_prophets/settings/__init__.py\n--- a/will_of_the_prophets/settings/__init__.py\n+++ b/will_of_the_prophets/settings/__init__.py\n@@ -42,6 +42,7 @@\n     'django.contrib.messages',\n     'django.contrib.staticfiles',\n     'sass_processor',\n+    'widget_tweaks',\n     'bootstrap',\n     'will_of_the_prophets',\n ]\n", "issue": "Clean up login form\n\n", "before_files": [{"content": "\"\"\"\nDjango settings for will_of_the_prophets project.\n\nGenerated by 'django-admin startproject' using Django 2.0.4.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/2.0/ref/settings/\n\"\"\"\n\nimport os\n\nimport django_heroku\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os.environ.get(\n    'SECRET_KEY', 'bah!osmx@cpaoulc-!eohvd3ldoy*^oki#l25-v6tvq04=6npz')\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = os.environ.get('DEBUG', False)\n\nALLOWED_HOSTS = ['*.herokuapp.com', 'localhost']\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'raven.contrib.django.raven_compat',\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'sass_processor',\n    'bootstrap',\n    'will_of_the_prophets',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'will_of_the_prophets.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'will_of_the_prophets.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/2.0/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3',\n        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),\n    }\n}\n\n\n# Password validation\n# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': ('django.contrib.auth.password_validation'\n                 '.UserAttributeSimilarityValidator'),\n    },\n    {\n        'NAME': ('django.contrib.auth.password_validation'\n                 '.MinimumLengthValidator'),\n    },\n    {\n        'NAME': ('django.contrib.auth.password_validation'\n                 '.CommonPasswordValidator'),\n    },\n    {\n        'NAME': ('django.contrib.auth.password_validation'\n                 '.NumericPasswordValidator'),\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/2.0/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/2.0/howto/static-files/\n\nSTATIC_URL = '/static/'\n\nSTATICFILES_FINDERS = [\n    'django.contrib.staticfiles.finders.FileSystemFinder',\n    'django.contrib.staticfiles.finders.AppDirectoriesFinder',\n    # https://github.com/jrief/django-sass-processor\n    'sass_processor.finders.CssFinder',\n]\n\n\n# django-sass-processor\n# https://github.com/jrief/django-sass-processor\nSASS_OUTPUT_STYLE = 'compressed'\n\n\n# Configure Django App for Heroku.\ndjango_heroku.settings(locals())\n", "path": "will_of_the_prophets/settings/__init__.py"}]}