Ticket #34082: mysql_gone_away.log

File mysql_gone_away.log, 31.5 KB (added by williamchevremont, 19 months ago)
Line 
1
2
3Internal Server Error: /gafc/main/new_lost_password/1433/f49b249f71fb61b3db67856427fe86c8
4
5OperationalError at /gafc/main/new_lost_password/1433/f49b249f71fb61b3db67856427fe86c8
6(2006, 'MySQL server has gone away')
7
8Request Method: GET
9Request URL: https://intranet.gucem.fr/gafc/main/new_lost_password/1433/f49b249f71fb61b3db67856427fe86c8
10Django Version: 3.2.16
11Python Executable: /usr/local/bin/python
12Python Version: 3.8.13
13Python Path: ['/gafc/gafc', '/usr/local/lib/python3.8/site-packages/git/ext/gitdb', '.', '/usr/local/bin', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/site-packages/gitdb/ext/smmap']
14Server time: Mon, 10 Oct 2022 11:40:14 +0200
15Installed Applications:
16['channels',
17 'channels_presence',
18 'django.contrib.contenttypes',
19 'django.contrib.sessions',
20 'django.contrib.messages',
21 'django.contrib.staticfiles',
22 'django.contrib.auth',
23 'crispy_forms',
24 'gafc',
25 'vehicles',
26 'formation',
27 'keys']
28Installed Middleware:
29['django.middleware.security.SecurityMiddleware',
30 'django.contrib.sessions.middleware.SessionMiddleware',
31 'django.middleware.common.CommonMiddleware',
32 'django.middleware.csrf.CsrfViewMiddleware',
33 'django.contrib.auth.middleware.AuthenticationMiddleware',
34 'django.contrib.messages.middleware.MessageMiddleware',
35 'django.middleware.clickjacking.XFrameOptionsMiddleware']
36
37
38Traceback (most recent call last):
39 File "/usr/local/lib/python3.8/site-packages/django/shortcuts.py", line 76, in get_object_or_404
40 return queryset.get(*args, **kwargs)
41 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 435, in get
42 raise self.model.DoesNotExist(
43
44During handling of the above exception (LostPasswordRequest matching query does not exist.), another exception occurred:
45 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 472, in thread_handler
46 raise exc_info[1]
47 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 38, in inner
48 response = await get_response(request)
49 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 233, in _get_response_async
50 response = await wrapped_callback(request, *callback_args, **callback_kwargs)
51 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 435, in __call__
52 ret = await asyncio.wait_for(future, timeout=None)
53 File "/usr/local/lib/python3.8/asyncio/tasks.py", line 455, in wait_for
54 return await fut
55 File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
56 result = self.fn(*self.args, **self.kwargs)
57 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 476, in thread_handler
58 return func(*args, **kwargs)
59 File "/usr/local/lib/python3.8/site-packages/django/views/decorators/debug.py", line 89, in sensitive_post_parameters_wrapper
60 return view(request, *args, **kwargs)
61 File "/gafc/gafc/gafc/views/logins.py", line 126, in new_lost_password
62 passRequest = get_object_or_404(LostPasswordRequest, id=id, token=token)
63 File "/usr/local/lib/python3.8/site-packages/django/shortcuts.py", line 78, in get_object_or_404
64 raise Http404('No %s matches the given query.' % queryset.model._meta.object_name)
65
66During handling of the above exception (No LostPasswordRequest matches the given query.), another exception occurred:
67 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
68 return self.cursor.execute(sql, params)
69 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 16, in wrapper
70 return f(self, query, args)
71 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 45, in execute
72 return self.cursor.execute(query, args)
73 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
74 res = self._query(query)
75 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
76 db.query(q)
77 File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
78 _mysql.connection.query(self, query)
79
80The above exception ((2006, 'MySQL server has gone away')) was the direct cause of the following exception:
81 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 132, in get_exception_response
82 response = callback(request, exception=exception)
83 File "/gafc/gafc/gafc/views/handlers.py", line 6, in handler404
84 return render(request, 'gafc/error_handler.html', locals(), status=404)
85 File "/usr/local/lib/python3.8/site-packages/django/shortcuts.py", line 19, in render
86 content = loader.render_to_string(template_name, context, request, using=using)
87 File "/usr/local/lib/python3.8/site-packages/django/template/loader.py", line 62, in render_to_string
88 return template.render(context, request)
89 File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
90 return self.template.render(context)
91 File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 168, in render
92 with context.bind_template(self):
93 File "/usr/local/lib/python3.8/contextlib.py", line 113, in __enter__
94 return next(self.gen)
95 File "/usr/local/lib/python3.8/site-packages/django/template/context.py", line 244, in bind_template
96 updates.update(processor(self.request))
97 File "/gafc/gafc/gafc/context_processors.py", line 9, in get_context
98 s_form = SeasonChoiceForm()
99 File "/gafc/gafc/gafc/forms.py", line 1048, in __init__
100 self.fields['season'].choices = [(s.id, s.name) for s in Season.objects.order_by('-is_default')]
101 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 280, in __iter__
102 self._fetch_all()
103 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1324, in _fetch_all
104 self._result_cache = list(self._iterable_class(self))
105 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 51, in __iter__
106 results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
107 File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
108 cursor.execute(sql, params)
109 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
110 return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
111 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
112 return executor(sql, params, many, context)
113 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
114 return self.cursor.execute(sql, params)
115 File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
116 raise dj_exc_value.with_traceback(traceback) from exc_value
117 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
118 return self.cursor.execute(sql, params)
119 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 16, in wrapper
120 return f(self, query, args)
121 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 45, in execute
122 return self.cursor.execute(query, args)
123 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
124 res = self._query(query)
125 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
126 db.query(q)
127 File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
128 _mysql.connection.query(self, query)
129
130During handling of the above exception ((2006, 'MySQL server has gone away')), another exception occurred:
131 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
132 return self.cursor.execute(sql, params)
133 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 16, in wrapper
134 return f(self, query, args)
135 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 45, in execute
136 return self.cursor.execute(query, args)
137 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
138 res = self._query(query)
139 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
140 db.query(q)
141 File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
142 _mysql.connection.query(self, query)
143
144The above exception ((2006, 'MySQL server has gone away')) was the direct cause of the following exception:
145 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 472, in thread_handler
146 raise exc_info[1]
147 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 38, in inner
148 response = await get_response(request)
149 File "/usr/local/lib/python3.8/site-packages/django/utils/deprecation.py", line 133, in __acall__
150 response = response or await self.get_response(request)
151 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 40, in inner
152 response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
153 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 435, in __call__
154 ret = await asyncio.wait_for(future, timeout=None)
155 File "/usr/local/lib/python3.8/asyncio/tasks.py", line 455, in wait_for
156 return await fut
157 File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
158 result = self.fn(*self.args, **self.kwargs)
159 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 474, in thread_handler
160 return func(*args, **kwargs)
161 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 59, in response_for_exception
162 response = get_exception_response(request, get_resolver(get_urlconf()), 404, exc)
163 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 135, in get_exception_response
164 response = handle_uncaught_exception(request, resolver, sys.exc_info())
165 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 153, in handle_uncaught_exception
166 return callback(request)
167 File "/gafc/gafc/gafc/views/handlers.py", line 15, in handler500
168 return render(request, 'gafc/error_handler.html', locals(), status=500)
169 File "/usr/local/lib/python3.8/site-packages/django/shortcuts.py", line 19, in render
170 content = loader.render_to_string(template_name, context, request, using=using)
171 File "/usr/local/lib/python3.8/site-packages/django/template/loader.py", line 62, in render_to_string
172 return template.render(context, request)
173 File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
174 return self.template.render(context)
175 File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 168, in render
176 with context.bind_template(self):
177 File "/usr/local/lib/python3.8/contextlib.py", line 113, in __enter__
178 return next(self.gen)
179 File "/usr/local/lib/python3.8/site-packages/django/template/context.py", line 244, in bind_template
180 updates.update(processor(self.request))
181 File "/gafc/gafc/gafc/context_processors.py", line 9, in get_context
182 s_form = SeasonChoiceForm()
183 File "/gafc/gafc/gafc/forms.py", line 1048, in __init__
184 self.fields['season'].choices = [(s.id, s.name) for s in Season.objects.order_by('-is_default')]
185 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 280, in __iter__
186 self._fetch_all()
187 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1324, in _fetch_all
188 self._result_cache = list(self._iterable_class(self))
189 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 51, in __iter__
190 results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
191 File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
192 cursor.execute(sql, params)
193 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
194 return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
195 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
196 return executor(sql, params, many, context)
197 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
198 return self.cursor.execute(sql, params)
199 File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
200 raise dj_exc_value.with_traceback(traceback) from exc_value
201 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
202 return self.cursor.execute(sql, params)
203 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 16, in wrapper
204 return f(self, query, args)
205 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 45, in execute
206 return self.cursor.execute(query, args)
207 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
208 res = self._query(query)
209 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
210 db.query(q)
211 File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
212 _mysql.connection.query(self, query)
213
214During handling of the above exception ((2006, 'MySQL server has gone away')), another exception occurred:
215 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
216 return self.cursor.execute(sql, params)
217 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 16, in wrapper
218 return f(self, query, args)
219 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 45, in execute
220 return self.cursor.execute(query, args)
221 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
222 res = self._query(query)
223 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
224 db.query(q)
225 File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
226 _mysql.connection.query(self, query)
227
228The above exception ((2006, 'MySQL server has gone away')) was the direct cause of the following exception:
229 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 472, in thread_handler
230 raise exc_info[1]
231 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 38, in inner
232 response = await get_response(request)
233 File "/usr/local/lib/python3.8/site-packages/django/utils/deprecation.py", line 133, in __acall__
234 response = response or await self.get_response(request)
235 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 40, in inner
236 response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
237 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 435, in __call__
238 ret = await asyncio.wait_for(future, timeout=None)
239 File "/usr/local/lib/python3.8/asyncio/tasks.py", line 455, in wait_for
240 return await fut
241 File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
242 result = self.fn(*self.args, **self.kwargs)
243 File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 474, in thread_handler
244 return func(*args, **kwargs)
245 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 114, in response_for_exception
246 response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
247 File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 153, in handle_uncaught_exception
248 return callback(request)
249 File "/gafc/gafc/gafc/views/handlers.py", line 15, in handler500
250 return render(request, 'gafc/error_handler.html', locals(), status=500)
251 File "/usr/local/lib/python3.8/site-packages/django/shortcuts.py", line 19, in render
252 content = loader.render_to_string(template_name, context, request, using=using)
253 File "/usr/local/lib/python3.8/site-packages/django/template/loader.py", line 62, in render_to_string
254 return template.render(context, request)
255 File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
256 return self.template.render(context)
257 File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 168, in render
258 with context.bind_template(self):
259 File "/usr/local/lib/python3.8/contextlib.py", line 113, in __enter__
260 return next(self.gen)
261 File "/usr/local/lib/python3.8/site-packages/django/template/context.py", line 244, in bind_template
262 updates.update(processor(self.request))
263 File "/gafc/gafc/gafc/context_processors.py", line 9, in get_context
264 s_form = SeasonChoiceForm()
265 File "/gafc/gafc/gafc/forms.py", line 1048, in __init__
266 self.fields['season'].choices = [(s.id, s.name) for s in Season.objects.order_by('-is_default')]
267 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 280, in __iter__
268 self._fetch_all()
269 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1324, in _fetch_all
270 self._result_cache = list(self._iterable_class(self))
271 File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 51, in __iter__
272 results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
273 File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
274 cursor.execute(sql, params)
275 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
276 return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
277 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
278 return executor(sql, params, many, context)
279 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
280 return self.cursor.execute(sql, params)
281 File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
282 raise dj_exc_value.with_traceback(traceback) from exc_value
283 File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
284 return self.cursor.execute(sql, params)
285 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 16, in wrapper
286 return f(self, query, args)
287 File "/usr/local/lib/python3.8/site-packages/mysql_server_has_gone_away/base.py", line 45, in execute
288 return self.cursor.execute(query, args)
289 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
290 res = self._query(query)
291 File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
292 db.query(q)
293 File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
294 _mysql.connection.query(self, query)
295
296Exception Type: OperationalError at /gafc/main/new_lost_password/1433/f49b249f71fb61b3db67856427fe86c8
297Exception Value: (2006, 'MySQL server has gone away')
298Request information:
299USER: Victor Messiant
300
301GET: No GET data
302
303POST: No POST data
304
305FILES: No FILES data
306
307COOKIES:
308sessionid = *****
309
310META:
311CSRF_COOKIE = *****
312CSRF_COOKIE_USED = True
313HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'
314HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
315HTTP_ACCEPT_LANGUAGE = 'fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7'
316HTTP_CACHE_CONTROL = 'max-age=0'
317HTTP_CONNECTION = 'close'
318HTTP_COOKIE = 'sessionid=g50j57gsr1dfhj2dl14cr8ku60aqzd1t'
319HTTP_HOST = 'intranet.gucem.fr'
320HTTP_SEC_FETCH_DEST = 'document'
321HTTP_SEC_FETCH_MODE = 'navigate'
322HTTP_SEC_FETCH_SITE = 'none'
323HTTP_SEC_FETCH_USER = '?1'
324HTTP_UPGRADE_INSECURE_REQUESTS = '1'
325HTTP_USER_AGENT = 'Mozilla/5.0 (Linux; U; Android 10; fr-fr; Redmi Note 8 Pro Build/QP1A.190711.020) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.127 Mobile Safari/537.36 XiaoMi/MiuiBrowser/13.14.1-gn'
326HTTP_X_FORWARDED_FOR = '147.171.46.128'
327HTTP_X_FORWARDED_HOST = 'intranet.gucem.fr'
328HTTP_X_FORWARDED_PROTO = 'https'
329HTTP_X_REAL_IP = '147.171.46.128'
330PATH_INFO = '/gafc/main/new_lost_password/1433/f49b249f71fb61b3db67856427fe86c8'
331QUERY_STRING = ''
332REMOTE_ADDR = '172.28.0.8'
333REMOTE_HOST = '172.28.0.8'
334REMOTE_PORT = 50068
335REQUEST_METHOD = 'GET'
336SCRIPT_NAME = ''
337SERVER_NAME = '172.28.0.6'
338SERVER_PORT = '8000'
339wsgi.multiprocess = True
340wsgi.multithread = True
341
342Settings:
343Using settings module gucem.settings
344ABSOLUTE_URL_OVERRIDES = {}
345ADMINS = [*****]
346ALLOWED_HOSTS = ['intranet.gucem.fr', 'www-intranet.gucem.fr']
347APPEND_SLASH = True
348ASGI_APPLICATION = 'gucem.routing.application'
349AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
350AUTH_PASSWORD_VALIDATORS = '********************'
351AUTH_USER_MODEL = 'gafc.Person'
352BASE_DIR = '/gafc/gafc'
353BROKER_URL = 'redis://redis:6379'
354CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
355CACHE_MIDDLEWARE_ALIAS = 'default'
356CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
357CACHE_MIDDLEWARE_SECONDS = 600
358CASHING_EMAIL_FROM = '****'
359CASHING_EMAIL_NOTIFY = [*****]
360CELERYBEAT_SCHEDULE = {'prune-presence': {'task': 'channels_presence.tasks.prune_presence', 'schedule': datetime.timedelta(seconds=60)}, 'prune-rooms': {'task': 'channels_presence.tasks.prune_rooms', 'schedule': datetime.timedelta(seconds=600)}, 'sympa_sync': {'task': 'gafc.tasks.sympa_sync', 'schedule': datetime.timedelta(seconds=3600)}, 'ffcam_sync': {'task': 'gafc.tasks.ffcam_sync', 'schedule': datetime.timedelta(seconds=3600)}}
361CELERY_ACCEPT_CONTENT = ['application/json']
362CELERY_IMPORTS = "('channels_presence.tasks', 'gafc.tasks')"
363CELERY_RESULT_BACKEND = 'redis://redis:6379'
364CELERY_RESULT_SERIALIZER = 'json'
365CELERY_TASK_SERIALIZER = 'json'
366CHANNEL_LAYERS = {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': [('redis', 6379)]}}}
367CRISPY_TEMPLATE_PACK = 'bootstrap4'
368CSRF_COOKIE_AGE = 31449600
369CSRF_COOKIE_DOMAIN = None
370CSRF_COOKIE_HTTPONLY = False
371CSRF_COOKIE_NAME = 'csrftoken'
372CSRF_COOKIE_PATH = '/'
373CSRF_COOKIE_SAMESITE = 'Lax'
374CSRF_COOKIE_SECURE = False
375CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
376CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
377CSRF_TRUSTED_ORIGINS = []
378CSRF_USE_SESSIONS = True
379DATABASES = {'default': {'ENGINE': 'mysql_server_has_gone_away', 'NAME': 'gafc', 'USER': 'gafc', 'PASSWORD': '********************', 'HOST': 'mysql', 'PORT': '', 'CONN_MAX_AGE': 300, 'OPTIONS': {'init_command': "SET sql_mode='STRICT_TRANS_TABLES'", 'charset': 'utf8'}, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}}
380DATABASE_ROUTERS = []
381DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
382DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
383DATETIME_FORMAT = 'N j, Y, P'
384DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M']
385DATE_FORMAT = 'N j, Y'
386DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
387DBBACKUP_STORAGE = 'django.core.files.storage.FileSystemStorage'
388DBBACKUP_STORAGE_OPTIONS = {'location': 'tmp'}
389DEBUG = False
390DEBUG_PROPAGATE_EXCEPTIONS = False
391DECIMAL_SEPARATOR = '.'
392DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
393DEFAULT_CHARSET = 'utf-8'
394DEFAULT_EXCEPTION_REPORTER = 'django.views.debug.ExceptionReporter'
395DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
396DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
397DEFAULT_FROM_EMAIL = ****
398DEFAULT_FROM_MAIL = *****
399DEFAULT_HASHING_ALGORITHM = 'sha256'
400DEFAULT_INDEX_TABLESPACE = ''
401DEFAULT_TABLESPACE = ''
402DISALLOWED_USER_AGENTS = []
403EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
404EMAIL_HOST = '*****
405EMAIL_HOST_PASSWORD = '********************'
406EMAIL_HOST_USER = *****
407EMAIL_PORT = 587
408EMAIL_SSL_CERTFILE = None
409EMAIL_SSL_KEYFILE = '********************'
410EMAIL_SUBJECT_PREFIX = '[Django] '
411EMAIL_TIMEOUT = None
412EMAIL_USE_LOCALTIME = False
413EMAIL_USE_SSL = False
414EMAIL_USE_TLS = True
415EVENT_TYPES = {'PR': {'name': 'Professionnel', 'allow_user': False, 'valo_formation': True, 'valo_reunion': False}, 'BN': {'name': 'Bénévole', 'allow_user': False, 'valo_formation': True, 'valo_reunion': False}, 'RE': {'name': 'Réunion', 'allow_user': False, 'valo_formation': False, 'valo_reunion': True}, 'SE': {'name': 'Vente', 'allow_user': False, 'valo_formation': False, 'valo_reunion': False}}
416FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
417FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
418FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
419FILE_UPLOAD_PERMISSIONS = 420
420FILE_UPLOAD_TEMP_DIR = None
421FIRST_DAY_OF_WEEK = 0
422FIXTURE_DIRS = []
423FORCE_SCRIPT_NAME = None
424FORMAT_MODULE_PATH = None
425FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
426GAFC_CACI_DURATION = 10
427GAFC_EXTRANET_ACROFEDE = 'FFCAM'
428GAFC_EXTRANET_PASSWD = '********************'
429GAFC_EXTRANET_USER = '3801_0050'
430GAFC_FILEFOLDER = 'files/'
431GAFC_LICENSESCHEME = '^3801[0-9]{8}$'
432GAFC_SYMPA_PASSWD = '********************'
433GAFC_SYMPA_SERVER = '****
434GAFC_SYMPA_USER = *****'
435GAFC_TEMPFOLDER = '/tmp/gafc/'
436GAFC_TOLERANCE_CACI = 45
437GAFC_WARN_LICENSES_DAYS = 10
438IGNORABLE_404_URLS = []
439INSTALLED_APPS = ['channels', 'channels_presence', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.auth', 'crispy_forms', 'gafc', 'vehicles', 'formation', 'keys']
440INTERNAL_IPS = []
441LANGUAGES = [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')]
442LANGUAGES_BIDI = ['he', 'ar', 'ar-dz', 'fa', 'ur']
443LANGUAGE_CODE = 'fr-FR'
444LANGUAGE_COOKIE_AGE = None
445LANGUAGE_COOKIE_DOMAIN = None
446LANGUAGE_COOKIE_HTTPONLY = False
447LANGUAGE_COOKIE_NAME = 'django_language'
448LANGUAGE_COOKIE_PATH = '/'
449LANGUAGE_COOKIE_SAMESITE = None
450LANGUAGE_COOKIE_SECURE = False
451LOCALE_PATHS = []
452LOCKDOWN_ADMIN = False
453LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'mail_admins': {'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler'}, 'console': {'level': 'INFO', 'class': 'logging.StreamHandler'}}, 'loggers': {'django': {'handlers': ['console'], 'level': 'INFO', 'propagate': True}, 'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': False}}}
454LOGGING_CONFIG = 'logging.config.dictConfig'
455LOGIN_REDIRECT_URL = '/accounts/profile/'
456LOGIN_URL = '/gafc/main/login'
457LOGOUT_REDIRECT_URL = None
458MANAGERS = []
459MEDIA_ROOT = ''
460MEDIA_URL = '/'
461MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
462MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
463MIGRATION_MODULES = {}
464MONTH_DAY_FORMAT = 'F j'
465NUMBER_GROUPING = 0
466PASSWORD_HASHERS = '********************'
467PASSWORD_RESET_TIMEOUT = '********************'
468PASSWORD_RESET_TIMEOUT_DAYS = '********************'
469PREPEND_WWW = False
470ROOT_URLCONF = 'gucem.urls'
471SECRET_KEY = '********************'
472SECURE_BROWSER_XSS_FILTER = False
473SECURE_CONTENT_TYPE_NOSNIFF = True
474SECURE_HSTS_INCLUDE_SUBDOMAINS = False
475SECURE_HSTS_PRELOAD = False
476SECURE_HSTS_SECONDS = 0
477SECURE_PROXY_SSL_HEADER = "('HTTP_X_FORWARDED_PROTO', 'https')"
478SECURE_REDIRECT_EXEMPT = []
479SECURE_REFERRER_POLICY = 'same-origin'
480SECURE_SSL_HOST = None
481SECURE_SSL_REDIRECT = False
482SERVER_EMAIL = *****
483SESSION_CACHE_ALIAS = 'default'
484SESSION_COOKIE_AGE = 1209600
485SESSION_COOKIE_DOMAIN = None
486SESSION_COOKIE_HTTPONLY = True
487SESSION_COOKIE_NAME = 'sessionid'
488SESSION_COOKIE_PATH = '/'
489SESSION_COOKIE_SAMESITE = 'Lax'
490SESSION_COOKIE_SECURE = False
491SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
492SESSION_EXPIRE_AT_BROWSER_CLOSE = False
493SESSION_FILE_PATH = None
494SESSION_SAVE_EVERY_REQUEST = False
495SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
496SETTINGS_MODULE = 'gucem.settings'
497SHORT_DATETIME_FORMAT = 'm/d/Y P'
498SHORT_DATE_FORMAT = 'm/d/Y'
499SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
500SILENCED_SYSTEM_CHECKS = []
501STATICFILES_DIRS = "('/gafc/gafc/static',)"
502STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
503STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
504STATIC_ROOT = '/gafc/static'
505STATIC_URL = '/static/'
506TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/gafc/gafc/templates'], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'gafc.context_processors.get_context']}}]
507TEST_NON_SERIALIZED_APPS = []
508TEST_RUNNER = 'django.test.runner.DiscoverRunner'
509THOUSAND_SEPARATOR = ','
510TIME_FORMAT = 'P'
511TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
512TIME_ZONE = 'Europe/Paris'
513USE_I18N = True
514USE_L10N = True
515USE_THOUSAND_SEPARATOR = False
516USE_TZ = True
517USE_X_FORWARDED_HOST = True
518USE_X_FORWARDED_PORT = False
519WSGI_APPLICATION = 'gucem.wsgi.application'
520X_FRAME_OPTIONS = 'DENY'
521YEAR_MONTH_FORMAT = 'F Y'
522
523
Back to Top