We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
remove raven dependency
because we don't use it.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `evap/settings.py`
Content:
```
1 # Django settings for evap project.
2 
3 # automatically determine SITE_ROOT, used for absolute paths below
4 import os.path
5 SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
6 
7 DEBUG = True
8 TEMPLATE_DEBUG = DEBUG
9 
10 ADMINS = (
11     # ('Your Name', 'your_email@example.com'),
12 )
13 
14 MANAGERS = ADMINS
15 
16 DATABASES = {
17     'default': {
18         'ENGINE': 'django.db.backends.sqlite3', # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
19         'NAME': os.path.join(SITE_ROOT, 'database.sqlite3'), # Or path to database file if using sqlite3.
20         'USER': '',                             # Not used with sqlite3.
21         'PASSWORD': '',                         # Not used with sqlite3.
22         'HOST': '',                             # Set to empty string for localhost. Not used with sqlite3.
23         'PORT': '',                             # Set to empty string for default. Not used with sqlite3.
24     }
25 }
26 
27 CACHES = {
28     'default': {
29     #    'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
30         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
31     }
32 }
33 
34 # config for feedback links
35 FEEDBACK_EMAIL = "webmaster@localhost"
36 TRACKER_URL = "https://github.com/fsr-itse/EvaP"
37 
38 # config for mail system
39 DEFAULT_FROM_EMAIL = "webmaster@localhost"
40 REPLY_TO_EMAIL = DEFAULT_FROM_EMAIL
41 if DEBUG:
42     EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
43 
44 # key authentication settings
45 LOGIN_KEY_VALIDITY = 210 # days, so roughly 7 months
46 
47 # minimum answers needed for publishing
48 MIN_ANSWER_COUNT = 2
49 MIN_ANSWER_PERCENTAGE = 0.2
50 
51 # the final total grade will be calculated by the following formula (GP = GRADE_PERCENTAGE, CP = CONTRIBUTION_PERCENTAGE):
52 # final_likert = CP * likert_answers_about_persons + (1-CP) * likert_answers_about_courses
53 # final_grade = CP * grade_answers_about_persons + (1-CP) * grade_answers_about_courses
54 # final = GP * final_grade + (1-GP) * final_likert
55 GRADE_PERCENTAGE = 0.8
56 CONTRIBUTION_PERCENTAGE = 0.5
57 
58 # days before end date to send reminder
59 REMIND_X_DAYS_AHEAD_OF_END_DATE = 2
60 
61 # email domains for the internal users of the hosting institution used to
62 # figure out who can login with username and password and who needs a login key
63 INSTITUTION_EMAIL_DOMAINS = ["hpi.uni-potsdam.de", "student.hpi.uni-potsdam.de"]
64 
65 # Local time zone for this installation. Choices can be found here:
66 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
67 # although not all choices may be available on all operating systems.
68 # On Unix systems, a value of None will cause Django to use the same
69 # timezone as the operating system.
70 # If running in a Windows environment this must be set to the same as your
71 # system time zone.
72 TIME_ZONE = 'Europe/Berlin'
73 
74 # Language code for this installation. All choices can be found here:
75 # http://www.i18nguy.com/unicode/language-identifiers.html
76 LANGUAGE_CODE = 'en'
77 
78 LANGUAGES = (
79     ('en', "English"),
80     ('de', "Deutsch"),
81 )
82 
83 SITE_ID = 1
84 
85 # If you set this to False, Django will make some optimizations so as not
86 # to load the internationalization machinery.
87 USE_I18N = True
88 
89 # If you set this to False, Django will not format dates, numbers and
90 # calendars according to the current locale
91 USE_L10N = True
92 
93 # Additional locations of fixture files
94 FIXTURE_DIRS = (
95     os.path.join(SITE_ROOT, "evaluation/fixtures"),
96 )
97 
98 # Locale paths
99 LOCALE_PATHS = (
100     os.path.join(SITE_ROOT, "locale"),
101 )
102 
103 # Absolute filesystem path to the directory that will hold user-uploaded files.
104 # Example: "/home/media/media.lawrence.com/media/"
105 MEDIA_ROOT = os.path.join(SITE_ROOT, "upload")
106 
107 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
108 # trailing slash.
109 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
110 MEDIA_URL = '/media/'
111 
112 # Absolute path to the directory static files should be collected to.
113 # Don't put anything in this directory yourself; store your static files
114 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
115 # Example: "/home/media/media.lawrence.com/static/"
116 STATIC_ROOT = os.path.join(SITE_ROOT, "staticfiles")
117 
118 # URL prefix for static files.
119 # Example: "http://media.lawrence.com/static/"
120 STATIC_URL = '/static/'
121 
122 # URL prefix for admin static files -- CSS, JavaScript and images.
123 # Make sure to use a trailing slash.
124 # Examples: "http://foo.com/static/admin/", "/static/admin/".
125 ADMIN_MEDIA_PREFIX = '/static/admin/'
126 
127 # Additional locations of static files
128 STATICFILES_DIRS = (
129     # Put strings here, like "/home/html/static" or "C:/www/django/static".
130     # Always use forward slashes, even on Windows.
131     # Don't forget to use absolute paths, not relative paths.
132     os.path.join(SITE_ROOT, "static"),
133 )
134 
135 # List of finder classes that know how to find static files in
136 # various locations.
137 STATICFILES_FINDERS = (
138     'django.contrib.staticfiles.finders.FileSystemFinder',
139     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
140 #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
141 )
142 
143 # Make this unique, and don't share it with anybody.
144 SECRET_KEY = 'k9-)vh3c_dtm6bpi7j(!*s_^91v0!ekjt_#o&0i$e22tnn^-vb'
145 
146 # List of callables that know how to import templates from various sources.
147 TEMPLATE_LOADERS = (
148     'django.template.loaders.filesystem.Loader',
149     'django.template.loaders.app_directories.Loader',
150 #     'django.template.loaders.eggs.Loader',
151 )
152 
153 TEMPLATE_CONTEXT_PROCESSORS = (
154     "django.contrib.auth.context_processors.auth",
155     "django.core.context_processors.debug",
156     "django.core.context_processors.i18n",
157     "django.core.context_processors.media",
158     "django.core.context_processors.static",
159     "django.core.context_processors.request",
160     "django.contrib.messages.context_processors.messages",
161 )
162 
163 MIDDLEWARE_CLASSES = (
164     'django.middleware.common.CommonMiddleware',
165     'django.contrib.sessions.middleware.SessionMiddleware',
166     'django.middleware.locale.LocaleMiddleware',
167     'django.middleware.csrf.CsrfViewMiddleware',
168     'django.contrib.auth.middleware.AuthenticationMiddleware',
169     'django.contrib.messages.middleware.MessageMiddleware',
170     'evap.evaluation.auth.RequestAuthMiddleware',
171     'evap.evaluation.403.Django403Middleware',
172 )
173 
174 AUTHENTICATION_BACKENDS = (
175     'evap.evaluation.auth.RequestAuthUserBackend',
176 #   'django_auth_kerberos.backends.KrbBackend',
177     'django.contrib.auth.backends.ModelBackend',
178 )
179 
180 # kerberos realm and service
181 #KRB5_REALM = 'EXAMPLE.COM'
182 #KRB5_SERVICE = 'krbtgt@AS.EXAMPLE.COM'
183 
184 # redirect url after login
185 LOGIN_REDIRECT_URL = '/'
186 
187 LOGIN_URL = "/"
188 
189 ROOT_URLCONF = 'evap.urls'
190 
191 TEMPLATE_DIRS = (
192     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
193     # Always use forward slashes, even on Windows.
194     # Don't forget to use absolute paths, not relative paths.
195     os.path.join(SITE_ROOT, "templates"),
196 )
197 
198 INSTALLED_APPS = (
199     'django.contrib.auth',
200     'django.contrib.contenttypes',
201     'django.contrib.sessions',
202     'django.contrib.sites',
203     'django.contrib.messages',
204     'django.contrib.staticfiles',
205     'django.contrib.admin',
206     'south',
207     'widget_tweaks',
208     'evap.evaluation',
209     'evap.fsr',
210     'evap.results',
211     'evap.student',
212     'evap.contributor',
213 #   'django_auth_kerberos',
214 )
215 if not DEBUG:
216     INSTALLED_APPS += (
217         'raven.contrib.django.raven_compat',
218     )
219 
220 RAVEN_CONFIG = {
221     'dsn': 'http://public:secret@example.com/1',
222 }
223 
224 # A sample logging configuration. The only tangible logging
225 # performed by this configuration is to send an email to
226 # the site admins on every HTTP 500 error.
227 # See http://docs.djangoproject.com/en/dev/topics/logging for
228 # more details on how to customize your logging configuration.
229 LOGGING = {
230     'version': 1,
231     'disable_existing_loggers': False,
232     'filters': {
233          'require_debug_false': {
234              '()': 'django.utils.log.RequireDebugFalse'
235          }
236      },
237     'handlers': {
238         'sentry': {
239             'level': 'ERROR',
240             'class': 'raven.contrib.django.handlers.SentryHandler',
241         },
242         'mail_admins': {
243             'level': 'ERROR',
244             'filters': ['require_debug_false'],
245             'class': 'django.utils.log.AdminEmailHandler'
246         },
247         'console': {
248             'level': 'INFO',
249             'class': 'logging.StreamHandler'
250         }
251     },
252     'loggers': {
253         'django.request': {
254             'handlers': ['mail_admins'],
255             'level': 'ERROR',
256             'propagate': True,
257         },
258         'evap.evaluation.management.commands.import_evaj': {
259             'handlers': ['console'],
260             'level': 'INFO'
261         },
262         'raven': {
263             'level': 'DEBUG',
264             'handlers': ['console'],
265             'propagate': False,
266         },
267         'sentry.errors': {
268             'level': 'DEBUG',
269             'handlers': ['console'],
270             'propagate': False,
271         }
272     }
273 }
274 
275 # Create a localsettings.py if you want to override settings per machine
276 # or user, e.g. for development or different settings in deployments using
277 # multiple servers.
278 _LOCAL_SETTINGS_FILENAME = os.path.join(SITE_ROOT, "localsettings.py")
279 if os.path.exists(_LOCAL_SETTINGS_FILENAME):
280     execfile(_LOCAL_SETTINGS_FILENAME)
281 del _LOCAL_SETTINGS_FILENAME
282
```
--- 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/evap/settings.py b/evap/settings.py
--- a/evap/settings.py
+++ b/evap/settings.py
@@ -212,14 +212,6 @@
     'evap.contributor',
 #   'django_auth_kerberos',
 )
-if not DEBUG:
-    INSTALLED_APPS += (
-        'raven.contrib.django.raven_compat',
-    )
-
-RAVEN_CONFIG = {
-    'dsn': 'http://public:secret@example.com/1',
-}
 
 # A sample logging configuration. The only tangible logging
 # performed by this configuration is to send an email to
@@ -235,10 +227,6 @@
          }
      },
     'handlers': {
-        'sentry': {
-            'level': 'ERROR',
-            'class': 'raven.contrib.django.handlers.SentryHandler',
-        },
         'mail_admins': {
             'level': 'ERROR',
             'filters': ['require_debug_false'],
@@ -258,16 +246,6 @@
         'evap.evaluation.management.commands.import_evaj': {
             'handlers': ['console'],
             'level': 'INFO'
-        },
-        'raven': {
-            'level': 'DEBUG',
-            'handlers': ['console'],
-            'propagate': False,
-        },
-        'sentry.errors': {
-            'level': 'DEBUG',
-            'handlers': ['console'],
-            'propagate': False,
         }
     }
 }

{"golden_diff": "diff --git a/evap/settings.py b/evap/settings.py\n--- a/evap/settings.py\n+++ b/evap/settings.py\n@@ -212,14 +212,6 @@\n     'evap.contributor',\n #   'django_auth_kerberos',\n )\n-if not DEBUG:\n-    INSTALLED_APPS += (\n-        'raven.contrib.django.raven_compat',\n-    )\n-\n-RAVEN_CONFIG = {\n-    'dsn': 'http://public:secret@example.com/1',\n-}\n \n # A sample logging configuration. The only tangible logging\n # performed by this configuration is to send an email to\n@@ -235,10 +227,6 @@\n          }\n      },\n     'handlers': {\n-        'sentry': {\n-            'level': 'ERROR',\n-            'class': 'raven.contrib.django.handlers.SentryHandler',\n-        },\n         'mail_admins': {\n             'level': 'ERROR',\n             'filters': ['require_debug_false'],\n@@ -258,16 +246,6 @@\n         'evap.evaluation.management.commands.import_evaj': {\n             'handlers': ['console'],\n             'level': 'INFO'\n-        },\n-        'raven': {\n-            'level': 'DEBUG',\n-            'handlers': ['console'],\n-            'propagate': False,\n-        },\n-        'sentry.errors': {\n-            'level': 'DEBUG',\n-            'handlers': ['console'],\n-            'propagate': False,\n         }\n     }\n }\n", "issue": "remove raven dependency\nbecause we don't use it.\n\n", "before_files": [{"content": "# Django settings for evap project.\n\n# automatically determine SITE_ROOT, used for absolute paths below\nimport os.path\nSITE_ROOT = os.path.dirname(os.path.realpath(__file__))\n\nDEBUG = True\nTEMPLATE_DEBUG = DEBUG\n\nADMINS = (\n    # ('Your Name', 'your_email@example.com'),\n)\n\nMANAGERS = ADMINS\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3', # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.\n        'NAME': os.path.join(SITE_ROOT, 'database.sqlite3'), # Or path to database file if using sqlite3.\n        'USER': '',                             # Not used with sqlite3.\n        'PASSWORD': '',                         # Not used with sqlite3.\n        'HOST': '',                             # Set to empty string for localhost. Not used with sqlite3.\n        'PORT': '',                             # Set to empty string for default. Not used with sqlite3.\n    }\n}\n\nCACHES = {\n    'default': {\n    #    'BACKEND': 'django.core.cache.backends.dummy.DummyCache',\n        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',\n    }\n}\n\n# config for feedback links\nFEEDBACK_EMAIL = \"webmaster@localhost\"\nTRACKER_URL = \"https://github.com/fsr-itse/EvaP\"\n\n# config for mail system\nDEFAULT_FROM_EMAIL = \"webmaster@localhost\"\nREPLY_TO_EMAIL = DEFAULT_FROM_EMAIL\nif DEBUG:\n    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'\n\n# key authentication settings\nLOGIN_KEY_VALIDITY = 210 # days, so roughly 7 months\n\n# minimum answers needed for publishing\nMIN_ANSWER_COUNT = 2\nMIN_ANSWER_PERCENTAGE = 0.2\n\n# the final total grade will be calculated by the following formula (GP = GRADE_PERCENTAGE, CP = CONTRIBUTION_PERCENTAGE):\n# final_likert = CP * likert_answers_about_persons + (1-CP) * likert_answers_about_courses\n# final_grade = CP * grade_answers_about_persons + (1-CP) * grade_answers_about_courses\n# final = GP * final_grade + (1-GP) * final_likert\nGRADE_PERCENTAGE = 0.8\nCONTRIBUTION_PERCENTAGE = 0.5\n\n# days before end date to send reminder\nREMIND_X_DAYS_AHEAD_OF_END_DATE = 2\n\n# email domains for the internal users of the hosting institution used to\n# figure out who can login with username and password and who needs a login key\nINSTITUTION_EMAIL_DOMAINS = [\"hpi.uni-potsdam.de\", \"student.hpi.uni-potsdam.de\"]\n\n# Local time zone for this installation. Choices can be found here:\n# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name\n# although not all choices may be available on all operating systems.\n# On Unix systems, a value of None will cause Django to use the same\n# timezone as the operating system.\n# If running in a Windows environment this must be set to the same as your\n# system time zone.\nTIME_ZONE = 'Europe/Berlin'\n\n# Language code for this installation. All choices can be found here:\n# http://www.i18nguy.com/unicode/language-identifiers.html\nLANGUAGE_CODE = 'en'\n\nLANGUAGES = (\n    ('en', \"English\"),\n    ('de', \"Deutsch\"),\n)\n\nSITE_ID = 1\n\n# If you set this to False, Django will make some optimizations so as not\n# to load the internationalization machinery.\nUSE_I18N = True\n\n# If you set this to False, Django will not format dates, numbers and\n# calendars according to the current locale\nUSE_L10N = True\n\n# Additional locations of fixture files\nFIXTURE_DIRS = (\n    os.path.join(SITE_ROOT, \"evaluation/fixtures\"),\n)\n\n# Locale paths\nLOCALE_PATHS = (\n    os.path.join(SITE_ROOT, \"locale\"),\n)\n\n# Absolute filesystem path to the directory that will hold user-uploaded files.\n# Example: \"/home/media/media.lawrence.com/media/\"\nMEDIA_ROOT = os.path.join(SITE_ROOT, \"upload\")\n\n# URL that handles the media served from MEDIA_ROOT. Make sure to use a\n# trailing slash.\n# Examples: \"http://media.lawrence.com/media/\", \"http://example.com/media/\"\nMEDIA_URL = '/media/'\n\n# Absolute path to the directory static files should be collected to.\n# Don't put anything in this directory yourself; store your static files\n# in apps' \"static/\" subdirectories and in STATICFILES_DIRS.\n# Example: \"/home/media/media.lawrence.com/static/\"\nSTATIC_ROOT = os.path.join(SITE_ROOT, \"staticfiles\")\n\n# URL prefix for static files.\n# Example: \"http://media.lawrence.com/static/\"\nSTATIC_URL = '/static/'\n\n# URL prefix for admin static files -- CSS, JavaScript and images.\n# Make sure to use a trailing slash.\n# Examples: \"http://foo.com/static/admin/\", \"/static/admin/\".\nADMIN_MEDIA_PREFIX = '/static/admin/'\n\n# Additional locations of static files\nSTATICFILES_DIRS = (\n    # Put strings here, like \"/home/html/static\" or \"C:/www/django/static\".\n    # Always use forward slashes, even on Windows.\n    # Don't forget to use absolute paths, not relative paths.\n    os.path.join(SITE_ROOT, \"static\"),\n)\n\n# List of finder classes that know how to find static files in\n# various locations.\nSTATICFILES_FINDERS = (\n    'django.contrib.staticfiles.finders.FileSystemFinder',\n    'django.contrib.staticfiles.finders.AppDirectoriesFinder',\n#    'django.contrib.staticfiles.finders.DefaultStorageFinder',\n)\n\n# Make this unique, and don't share it with anybody.\nSECRET_KEY = 'k9-)vh3c_dtm6bpi7j(!*s_^91v0!ekjt_#o&0i$e22tnn^-vb'\n\n# List of callables that know how to import templates from various sources.\nTEMPLATE_LOADERS = (\n    'django.template.loaders.filesystem.Loader',\n    'django.template.loaders.app_directories.Loader',\n#     'django.template.loaders.eggs.Loader',\n)\n\nTEMPLATE_CONTEXT_PROCESSORS = (\n    \"django.contrib.auth.context_processors.auth\",\n    \"django.core.context_processors.debug\",\n    \"django.core.context_processors.i18n\",\n    \"django.core.context_processors.media\",\n    \"django.core.context_processors.static\",\n    \"django.core.context_processors.request\",\n    \"django.contrib.messages.context_processors.messages\",\n)\n\nMIDDLEWARE_CLASSES = (\n    'django.middleware.common.CommonMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.locale.LocaleMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'evap.evaluation.auth.RequestAuthMiddleware',\n    'evap.evaluation.403.Django403Middleware',\n)\n\nAUTHENTICATION_BACKENDS = (\n    'evap.evaluation.auth.RequestAuthUserBackend',\n#   'django_auth_kerberos.backends.KrbBackend',\n    'django.contrib.auth.backends.ModelBackend',\n)\n\n# kerberos realm and service\n#KRB5_REALM = 'EXAMPLE.COM'\n#KRB5_SERVICE = 'krbtgt@AS.EXAMPLE.COM'\n\n# redirect url after login\nLOGIN_REDIRECT_URL = '/'\n\nLOGIN_URL = \"/\"\n\nROOT_URLCONF = 'evap.urls'\n\nTEMPLATE_DIRS = (\n    # Put strings here, like \"/home/html/django_templates\" or \"C:/www/django/templates\".\n    # Always use forward slashes, even on Windows.\n    # Don't forget to use absolute paths, not relative paths.\n    os.path.join(SITE_ROOT, \"templates\"),\n)\n\nINSTALLED_APPS = (\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.sites',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'django.contrib.admin',\n    'south',\n    'widget_tweaks',\n    'evap.evaluation',\n    'evap.fsr',\n    'evap.results',\n    'evap.student',\n    'evap.contributor',\n#   'django_auth_kerberos',\n)\nif not DEBUG:\n    INSTALLED_APPS += (\n        'raven.contrib.django.raven_compat',\n    )\n\nRAVEN_CONFIG = {\n    'dsn': 'http://public:secret@example.com/1',\n}\n\n# A sample logging configuration. The only tangible logging\n# performed by this configuration is to send an email to\n# the site admins on every HTTP 500 error.\n# See http://docs.djangoproject.com/en/dev/topics/logging for\n# more details on how to customize your logging configuration.\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'filters': {\n         'require_debug_false': {\n             '()': 'django.utils.log.RequireDebugFalse'\n         }\n     },\n    'handlers': {\n        'sentry': {\n            'level': 'ERROR',\n            'class': 'raven.contrib.django.handlers.SentryHandler',\n        },\n        'mail_admins': {\n            'level': 'ERROR',\n            'filters': ['require_debug_false'],\n            'class': 'django.utils.log.AdminEmailHandler'\n        },\n        'console': {\n            'level': 'INFO',\n            'class': 'logging.StreamHandler'\n        }\n    },\n    'loggers': {\n        'django.request': {\n            'handlers': ['mail_admins'],\n            'level': 'ERROR',\n            'propagate': True,\n        },\n        'evap.evaluation.management.commands.import_evaj': {\n            'handlers': ['console'],\n            'level': 'INFO'\n        },\n        'raven': {\n            'level': 'DEBUG',\n            'handlers': ['console'],\n            'propagate': False,\n        },\n        'sentry.errors': {\n            'level': 'DEBUG',\n            'handlers': ['console'],\n            'propagate': False,\n        }\n    }\n}\n\n# Create a localsettings.py if you want to override settings per machine\n# or user, e.g. for development or different settings in deployments using\n# multiple servers.\n_LOCAL_SETTINGS_FILENAME = os.path.join(SITE_ROOT, \"localsettings.py\")\nif os.path.exists(_LOCAL_SETTINGS_FILENAME):\n    execfile(_LOCAL_SETTINGS_FILENAME)\ndel _LOCAL_SETTINGS_FILENAME\n", "path": "evap/settings.py"}], "after_files": [{"content": "# Django settings for evap project.\n\n# automatically determine SITE_ROOT, used for absolute paths below\nimport os.path\nSITE_ROOT = os.path.dirname(os.path.realpath(__file__))\n\nDEBUG = True\nTEMPLATE_DEBUG = DEBUG\n\nADMINS = (\n    # ('Your Name', 'your_email@example.com'),\n)\n\nMANAGERS = ADMINS\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3', # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.\n        'NAME': os.path.join(SITE_ROOT, 'database.sqlite3'), # Or path to database file if using sqlite3.\n        'USER': '',                             # Not used with sqlite3.\n        'PASSWORD': '',                         # Not used with sqlite3.\n        'HOST': '',                             # Set to empty string for localhost. Not used with sqlite3.\n        'PORT': '',                             # Set to empty string for default. Not used with sqlite3.\n    }\n}\n\nCACHES = {\n    'default': {\n    #    'BACKEND': 'django.core.cache.backends.dummy.DummyCache',\n        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',\n    }\n}\n\n# config for feedback links\nFEEDBACK_EMAIL = \"webmaster@localhost\"\nTRACKER_URL = \"https://github.com/fsr-itse/EvaP\"\n\n# config for mail system\nDEFAULT_FROM_EMAIL = \"webmaster@localhost\"\nREPLY_TO_EMAIL = DEFAULT_FROM_EMAIL\nif DEBUG:\n    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'\n\n# key authentication settings\nLOGIN_KEY_VALIDITY = 210 # days, so roughly 7 months\n\n# minimum answers needed for publishing\nMIN_ANSWER_COUNT = 2\nMIN_ANSWER_PERCENTAGE = 0.2\n\n# the final total grade will be calculated by the following formula (GP = GRADE_PERCENTAGE, CP = CONTRIBUTION_PERCENTAGE):\n# final_likert = CP * likert_answers_about_persons + (1-CP) * likert_answers_about_courses\n# final_grade = CP * grade_answers_about_persons + (1-CP) * grade_answers_about_courses\n# final = GP * final_grade + (1-GP) * final_likert\nGRADE_PERCENTAGE = 0.8\nCONTRIBUTION_PERCENTAGE = 0.5\n\n# days before end date to send reminder\nREMIND_X_DAYS_AHEAD_OF_END_DATE = 2\n\n# email domains for the internal users of the hosting institution used to\n# figure out who can login with username and password and who needs a login key\nINSTITUTION_EMAIL_DOMAINS = [\"hpi.uni-potsdam.de\", \"student.hpi.uni-potsdam.de\"]\n\n# Local time zone for this installation. Choices can be found here:\n# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name\n# although not all choices may be available on all operating systems.\n# On Unix systems, a value of None will cause Django to use the same\n# timezone as the operating system.\n# If running in a Windows environment this must be set to the same as your\n# system time zone.\nTIME_ZONE = 'Europe/Berlin'\n\n# Language code for this installation. All choices can be found here:\n# http://www.i18nguy.com/unicode/language-identifiers.html\nLANGUAGE_CODE = 'en'\n\nLANGUAGES = (\n    ('en', \"English\"),\n    ('de', \"Deutsch\"),\n)\n\nSITE_ID = 1\n\n# If you set this to False, Django will make some optimizations so as not\n# to load the internationalization machinery.\nUSE_I18N = True\n\n# If you set this to False, Django will not format dates, numbers and\n# calendars according to the current locale\nUSE_L10N = True\n\n# Additional locations of fixture files\nFIXTURE_DIRS = (\n    os.path.join(SITE_ROOT, \"evaluation/fixtures\"),\n)\n\n# Locale paths\nLOCALE_PATHS = (\n    os.path.join(SITE_ROOT, \"locale\"),\n)\n\n# Absolute filesystem path to the directory that will hold user-uploaded files.\n# Example: \"/home/media/media.lawrence.com/media/\"\nMEDIA_ROOT = os.path.join(SITE_ROOT, \"upload\")\n\n# URL that handles the media served from MEDIA_ROOT. Make sure to use a\n# trailing slash.\n# Examples: \"http://media.lawrence.com/media/\", \"http://example.com/media/\"\nMEDIA_URL = '/media/'\n\n# Absolute path to the directory static files should be collected to.\n# Don't put anything in this directory yourself; store your static files\n# in apps' \"static/\" subdirectories and in STATICFILES_DIRS.\n# Example: \"/home/media/media.lawrence.com/static/\"\nSTATIC_ROOT = os.path.join(SITE_ROOT, \"staticfiles\")\n\n# URL prefix for static files.\n# Example: \"http://media.lawrence.com/static/\"\nSTATIC_URL = '/static/'\n\n# URL prefix for admin static files -- CSS, JavaScript and images.\n# Make sure to use a trailing slash.\n# Examples: \"http://foo.com/static/admin/\", \"/static/admin/\".\nADMIN_MEDIA_PREFIX = '/static/admin/'\n\n# Additional locations of static files\nSTATICFILES_DIRS = (\n    # Put strings here, like \"/home/html/static\" or \"C:/www/django/static\".\n    # Always use forward slashes, even on Windows.\n    # Don't forget to use absolute paths, not relative paths.\n    os.path.join(SITE_ROOT, \"static\"),\n)\n\n# List of finder classes that know how to find static files in\n# various locations.\nSTATICFILES_FINDERS = (\n    'django.contrib.staticfiles.finders.FileSystemFinder',\n    'django.contrib.staticfiles.finders.AppDirectoriesFinder',\n#    'django.contrib.staticfiles.finders.DefaultStorageFinder',\n)\n\n# Make this unique, and don't share it with anybody.\nSECRET_KEY = 'k9-)vh3c_dtm6bpi7j(!*s_^91v0!ekjt_#o&0i$e22tnn^-vb'\n\n# List of callables that know how to import templates from various sources.\nTEMPLATE_LOADERS = (\n    'django.template.loaders.filesystem.Loader',\n    'django.template.loaders.app_directories.Loader',\n#     'django.template.loaders.eggs.Loader',\n)\n\nTEMPLATE_CONTEXT_PROCESSORS = (\n    \"django.contrib.auth.context_processors.auth\",\n    \"django.core.context_processors.debug\",\n    \"django.core.context_processors.i18n\",\n    \"django.core.context_processors.media\",\n    \"django.core.context_processors.static\",\n    \"django.core.context_processors.request\",\n    \"django.contrib.messages.context_processors.messages\",\n)\n\nMIDDLEWARE_CLASSES = (\n    'django.middleware.common.CommonMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.locale.LocaleMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'evap.evaluation.auth.RequestAuthMiddleware',\n    'evap.evaluation.403.Django403Middleware',\n)\n\nAUTHENTICATION_BACKENDS = (\n    'evap.evaluation.auth.RequestAuthUserBackend',\n#   'django_auth_kerberos.backends.KrbBackend',\n    'django.contrib.auth.backends.ModelBackend',\n)\n\n# kerberos realm and service\n#KRB5_REALM = 'EXAMPLE.COM'\n#KRB5_SERVICE = 'krbtgt@AS.EXAMPLE.COM'\n\n# redirect url after login\nLOGIN_REDIRECT_URL = '/'\n\nLOGIN_URL = \"/\"\n\nROOT_URLCONF = 'evap.urls'\n\nTEMPLATE_DIRS = (\n    # Put strings here, like \"/home/html/django_templates\" or \"C:/www/django/templates\".\n    # Always use forward slashes, even on Windows.\n    # Don't forget to use absolute paths, not relative paths.\n    os.path.join(SITE_ROOT, \"templates\"),\n)\n\nINSTALLED_APPS = (\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.sites',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'django.contrib.admin',\n    'south',\n    'widget_tweaks',\n    'evap.evaluation',\n    'evap.fsr',\n    'evap.results',\n    'evap.student',\n    'evap.contributor',\n#   'django_auth_kerberos',\n)\n\n# A sample logging configuration. The only tangible logging\n# performed by this configuration is to send an email to\n# the site admins on every HTTP 500 error.\n# See http://docs.djangoproject.com/en/dev/topics/logging for\n# more details on how to customize your logging configuration.\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'filters': {\n         'require_debug_false': {\n             '()': 'django.utils.log.RequireDebugFalse'\n         }\n     },\n    'handlers': {\n        'mail_admins': {\n            'level': 'ERROR',\n            'filters': ['require_debug_false'],\n            'class': 'django.utils.log.AdminEmailHandler'\n        },\n        'console': {\n            'level': 'INFO',\n            'class': 'logging.StreamHandler'\n        }\n    },\n    'loggers': {\n        'django.request': {\n            'handlers': ['mail_admins'],\n            'level': 'ERROR',\n            'propagate': True,\n        },\n        'evap.evaluation.management.commands.import_evaj': {\n            'handlers': ['console'],\n            'level': 'INFO'\n        }\n    }\n}\n\n# Create a localsettings.py if you want to override settings per machine\n# or user, e.g. for development or different settings in deployments using\n# multiple servers.\n_LOCAL_SETTINGS_FILENAME = os.path.join(SITE_ROOT, \"localsettings.py\")\nif os.path.exists(_LOCAL_SETTINGS_FILENAME):\n    execfile(_LOCAL_SETTINGS_FILENAME)\ndel _LOCAL_SETTINGS_FILENAME\n", "path": "evap/settings.py"}]}