· 9 years ago · Jun 19, 2016, 01:30 PM
1error at /v1/api/users/
2
3[Errno 101] Network is unreachable
4Request Method: POST
5Request URL: https://ochotnicy.waw.pl/v1/api/users/
6Django Version: 1.6.8
7Exception Type: error
8Exception Value:
9[Errno 101] Network is unreachable
10Exception Location: /usr/lib/python2.7/socket.py in create_connection, line 571
11Python Executable: /usr/local/bin/uwsgi
12Python Version: 2.7.6
13Python Path:
14['/code/apps',
15 '.',
16 '',
17 '/usr/local/lib/python2.7/dist-packages/pip-7.1.2-py2.7.egg',
18 '/usr/lib/python2.7',
19 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
20 '/usr/lib/python2.7/lib-tk',
21 '/usr/lib/python2.7/lib-old',
22 '/usr/lib/python2.7/lib-dynload',
23 '/usr/local/lib/python2.7/dist-packages',
24 '/usr/lib/python2.7/dist-packages',
25 '/code']
26Server time: Nd, 19 Czerw 2016 15:29:11 +0200
27Traceback Switch to copy-and-paste view
28
29/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response
30 response = middleware_method(request, callback, callback_args, callback_kwargs)
31 if response:
32 break
33 if response is None:
34 wrapped_callback = self.make_view_atomic(callback)
35 try:
36 response = wrapped_callback(request, *callback_args, **callback_kwargs)
37...
38 except Exception as e:
39 # If the view raised an exception, run it through exception
40 # middleware, and if the exception middleware returns a
41 # response, use that. Otherwise, reraise the exception.
42 for middleware_method in self._exception_middleware:
43 response = middleware_method(request, e)
44â–¶ Local vars
45Variable Value
46e
47error(101, 'Network is unreachable')
48callback_args
49()
50resolver_match
51ResolverMatch(func=<function UserViewSet at 0x7fb52a62a8c0>, args=(), kwargs={}, url_name='users-list', app_name='None', namespace='')
52middleware_method
53<bound method RevisionMiddleware.process_exception of <reversion.middleware.RevisionMiddleware object at 0x7fb53371b350>>
54self
55<django.core.handlers.wsgi.WSGIHandler object at 0x7fb53bae7590>
56request
57"<WSGIRequest\npath:/v1/api/users/,\nGET:<QueryDict: {}>,\nPOST:<could not parse>,\nCOOKIES:{'privacyOpen': 'True', 'sessionid': 'rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'},\nMETA:{'CONTENT_LENGTH': '84',\n 'CONTENT_TYPE': 'application/json;charset=UTF-8',\n u'CSRF_COOKIE': u'8jJChhG1YAqqLOV7lCaEFToEEXVADVdI',\n 'HTTP_ACCEPT': 'application/json, text/plain, */*',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br',\n 'HTTP_ACCEPT_LANGUAGE': 'pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2,it;q=0.2',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_COOKIE': 'privacyOpen=True; sessionid=rg0jtvs7n8eyyc5s38q68ijupnwkn9ie',\n 'HTTP_HOST': 'ochotnicy.waw.pl',\n 'HTTP_ORIGIN': 'https://ochotnicy.waw.pl',\n 'HTTP_REFERER': 'https://ochotnicy.waw.pl/',\n 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36',\n 'HTTP_X_FORWARDED_PROTO': 'https',\n 'HTTP_X_REAL_IP': '89.75.187.144',\n 'PATH_INFO': u'/v1/api/users/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '172.17.0.6',\n 'REQUEST_METHOD': 'POST',\n 'REQUEST_URI': '/v1/api/users/?',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '964331421c19',\n 'SERVER_PORT': '8080',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'uwsgi.node': '964331421c19',\n 'uwsgi.version': '2.0.11.2',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fb537fad270>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7fb528b236d8>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>"
58callback
59<function UserViewSet at 0x7fb52a62a8c0>
60wrapped_callback
61<function UserViewSet at 0x7fb52a62a8c0>
62resolver
63<RegexURLResolver 'conf.urls' (None:None) ^/>
64callback_kwargs
65{}
66response
67None
68urlconf
69'conf.urls'
70/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py in wrapped_view
71 """
72 Marks a view function as being exempt from the CSRF view protection.
73 """
74 # We could just do view_func.csrf_exempt = True, but decorators
75 # are nicer if they don't have side-effects, so we return a new
76 # function.
77 def wrapped_view(*args, **kwargs):
78 return view_func(*args, **kwargs)
79...
80 wrapped_view.csrf_exempt = True
81 return wraps(view_func, assigned=available_attrs(view_func))(wrapped_view)
82â–¶ Local vars
83Variable Value
84args
85(<WSGIRequest
86path:/v1/api/users/,
87GET:<QueryDict: {}>,
88POST:<could not parse>,
89COOKIES:{'privacyOpen': 'True', 'sessionid': 'rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'},
90META:{'CONTENT_LENGTH': '84',
91 'CONTENT_TYPE': 'application/json;charset=UTF-8',
92 u'CSRF_COOKIE': u'8jJChhG1YAqqLOV7lCaEFToEEXVADVdI',
93 'HTTP_ACCEPT': 'application/json, text/plain, */*',
94 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br',
95 'HTTP_ACCEPT_LANGUAGE': 'pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2,it;q=0.2',
96 'HTTP_CONNECTION': 'close',
97 'HTTP_COOKIE': 'privacyOpen=True; sessionid=rg0jtvs7n8eyyc5s38q68ijupnwkn9ie',
98 'HTTP_HOST': 'ochotnicy.waw.pl',
99 'HTTP_ORIGIN': 'https://ochotnicy.waw.pl',
100 'HTTP_REFERER': 'https://ochotnicy.waw.pl/',
101 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36',
102 'HTTP_X_FORWARDED_PROTO': 'https',
103 'HTTP_X_REAL_IP': '89.75.187.144',
104 'PATH_INFO': u'/v1/api/users/',
105 'QUERY_STRING': '',
106 'REMOTE_ADDR': '172.17.0.6',
107 'REQUEST_METHOD': 'POST',
108 'REQUEST_URI': '/v1/api/users/?',
109 'SCRIPT_NAME': u'',
110 'SERVER_NAME': '964331421c19',
111 'SERVER_PORT': '8080',
112 'SERVER_PROTOCOL': 'HTTP/1.0',
113 'uwsgi.node': '964331421c19',
114 'uwsgi.version': '2.0.11.2',
115 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fb537fad270>,
116 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,
117 'wsgi.input': <uwsgi._Input object at 0x7fb528b236d8>,
118 'wsgi.multiprocess': True,
119 'wsgi.multithread': False,
120 'wsgi.run_once': False,
121 'wsgi.url_scheme': 'https',
122 'wsgi.version': (1, 0)}>,)
123view_func
124<function UserViewSet at 0x7fb52a62a848>
125kwargs
126{}
127/usr/local/lib/python2.7/dist-packages/rest_framework/viewsets.py in view
128 setattr(self, method, handler)
129 # Patch this in as it's otherwise only present from 1.5 onwards
130 if hasattr(self, 'get') and not hasattr(self, 'head'):
131 self.head = self.get
132 # And continue as usual
133 return self.dispatch(request, *args, **kwargs)
134...
135 # take name and docstring from class
136 update_wrapper(view, cls, updated=())
137 # and possible attributes set by decorators
138 # like csrf_exempt from dispatch
139â–¶ Local vars
140Variable Value
141initkwargs
142{u'suffix': u'List'}
143self
144<apps.api.views.UserViewSet object at 0x7fb5299c6e90>
145args
146()
147request
148"<WSGIRequest\npath:/v1/api/users/,\nGET:<QueryDict: {}>,\nPOST:<could not parse>,\nCOOKIES:{'privacyOpen': 'True', 'sessionid': 'rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'},\nMETA:{'CONTENT_LENGTH': '84',\n 'CONTENT_TYPE': 'application/json;charset=UTF-8',\n u'CSRF_COOKIE': u'8jJChhG1YAqqLOV7lCaEFToEEXVADVdI',\n 'HTTP_ACCEPT': 'application/json, text/plain, */*',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br',\n 'HTTP_ACCEPT_LANGUAGE': 'pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2,it;q=0.2',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_COOKIE': 'privacyOpen=True; sessionid=rg0jtvs7n8eyyc5s38q68ijupnwkn9ie',\n 'HTTP_HOST': 'ochotnicy.waw.pl',\n 'HTTP_ORIGIN': 'https://ochotnicy.waw.pl',\n 'HTTP_REFERER': 'https://ochotnicy.waw.pl/',\n 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36',\n 'HTTP_X_FORWARDED_PROTO': 'https',\n 'HTTP_X_REAL_IP': '89.75.187.144',\n 'PATH_INFO': u'/v1/api/users/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '172.17.0.6',\n 'REQUEST_METHOD': 'POST',\n 'REQUEST_URI': '/v1/api/users/?',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '964331421c19',\n 'SERVER_PORT': '8080',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'uwsgi.node': '964331421c19',\n 'uwsgi.version': '2.0.11.2',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fb537fad270>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7fb528b236d8>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>"
149actions
150{u'post': u'create'}
151handler
152<bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
153kwargs
154{}
155action
156u'create'
157method
158u'post'
159cls
160<class 'apps.api.views.UserViewSet'>
161/usr/local/lib/python2.7/dist-packages/rest_framework/views.py in dispatch
162 self.http_method_not_allowed)
163 else:
164 handler = self.http_method_not_allowed
165 response = handler(request, *args, **kwargs)
166 except Exception as exc:
167 response = self.handle_exception(exc)
168...
169 self.response = self.finalize_response(request, response, *args, **kwargs)
170 return self.response
171 def options(self, request, *args, **kwargs):
172 """
173â–¶ Local vars
174Variable Value
175exc
176error(101, 'Network is unreachable')
177self
178<apps.api.views.UserViewSet object at 0x7fb5299c6e90>
179args
180()
181request
182<rest_framework.request.Request object at 0x7fb5299e2090>
183handler
184<bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
185kwargs
186{}
187/usr/local/lib/python2.7/dist-packages/rest_framework/views.py in dispatch
188 # Get the appropriate handler method
189 if request.method.lower() in self.http_method_names:
190 handler = getattr(self, request.method.lower(),
191 self.http_method_not_allowed)
192 else:
193 handler = self.http_method_not_allowed
194 response = handler(request, *args, **kwargs)
195...
196 except Exception as exc:
197 response = self.handle_exception(exc)
198 self.response = self.finalize_response(request, response, *args, **kwargs)
199 return self.response
200â–¶ Local vars
201Variable Value
202exc
203error(101, 'Network is unreachable')
204self
205<apps.api.views.UserViewSet object at 0x7fb5299c6e90>
206args
207()
208request
209<rest_framework.request.Request object at 0x7fb5299e2090>
210handler
211<bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
212kwargs
213{}
214./apps/api/views.py in create
215 def create(self, request, *args, **kwargs):
216 self.debug_request(request)
217 serialized = UserSerializer(data=request.DATA)
218 if serialized.is_valid():
219 user_data = utils.get_user_data(request.DATA)
220 user = self.create_inactive_user(**user_data)
221...
222 user_profile = UserProfile(user=user, organization_member=None)
223 user_profile.save()
224 target = NotificationTarget(user=user, target=user.email, backend=1, active=True)
225 target.save()
226â–¶ Local vars
227Variable Value
228serialized
229<apps.api.serializers.UserSerializer object at 0x7fb5299e2b90>
230self
231<apps.api.views.UserViewSet object at 0x7fb5299c6e90>
232args
233()
234request
235<rest_framework.request.Request object at 0x7fb5299e2090>
236user_data
237{u'email': u'dorota.kurak@hotmail.com',
238 u'password': u'Paciaciaki',
239 u'username': u'MissAsumay'}
240kwargs
241{}
242/usr/local/lib/python2.7/dist-packages/django/db/transaction.py in inner
243 else:
244 connection.in_atomic_block = False
245 def __call__(self, func):
246 @wraps(func, assigned=available_attrs(func))
247 def inner(*args, **kwargs):
248 with self:
249 return func(*args, **kwargs)
250...
251 return inner
252def atomic(using=None, savepoint=True):
253 # Bare decorator: @atomic -- although the first argument is called
254 # `using`, it's actually the function being decorated.
255â–¶ Local vars
256Variable Value
257self
258<django.db.transaction.Atomic object at 0x7fb52afd5910>
259args
260(<apps.api.views.UserViewSet object at 0x7fb5299c6e90>,)
261func
262<function create_inactive_user at 0x7fb52afdb320>
263kwargs
264{u'email': u'dorota.kurak@hotmail.com',
265 u'password': u'Paciaciaki',
266 u'username': u'MissAsumay'}
267./apps/api/views.py in create_inactive_user
268 new_user = user_model.objects.create_user(username, email, password)
269 else:
270 new_user = user_model.objects.create_user(email=email, password=password)
271 new_user.is_active = False
272 new_user.save()
273 create_profile(new_user)
274 site = Site.objects.get_current()
275 self.send_activation_email(new_user, site)
276...
277 return new_user
278 def send_activation_email(self, user, site):
279 setts = Settings.objects.get(settings__contains=['instance_url'])
280 ctx_dict = {'activation_key': user.api_registration_profile.activation_key,
281â–¶ Local vars
282Variable Value
283username
284u'MissAsumay'
285user_model
286<class 'django.contrib.auth.models.User'>
287new_user
288<User: MissAsumay>
289self
290<apps.api.views.UserViewSet object at 0x7fb5299c6e90>
291site
292<Site: localhost:8000>
293password
294u'Paciaciaki'
295email
296u'dorota.kurak@hotmail.com'
297./apps/api/views.py in send_activation_email
298 'instance_name': setts.settings['instance_name']}
299 subject = render_to_string('registration_api/activation_email_subject.txt',
300 ctx_dict)
301 # Email subject *must not* contain newlines
302 subject = ''.join(subject.splitlines())
303 message = render_to_string('registration_api/activation_email.txt',
304 ctx_dict)
305 user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
306...
307 def update(self, request, *args, **kwargs):
308 self.debug_request(request)
309 serializer = UserSerializer
310â–¶ Local vars
311Variable Value
312ctx_dict
313{'activation_key': '031889c09bc91612e93f4813a84fd7c347cad5ca',
314 'contact_email': u'ochotnicy@ochotnicy.pl',
315 'expiration_days': 7,
316 'instance_name': u'Warszawscy',
317 'instance_url': u'https://ochotnicy.waw.pl/',
318 'name': u'MissAsumay',
319 'site': <Site: localhost:8000>}
320self
321<apps.api.views.UserViewSet object at 0x7fb5299c6e90>
322site
323<Site: localhost:8000>
324user
325<User: MissAsumay>
326message
327u'Witaj MissAsumay,\n\nDzi\u0119kujemy za rejestracj\u0119 na portalu Ochotnicy Warszawscy.\n\nProsimy o klikni\u0119cie w poni\u017cszy link celem potwierdzenia adresu e-mail.\nhttps://ochotnicy.waw.pl//activation/031889c09bc91612e93f4813a84fd7c347cad5ca\n\nPozdrawiamy\nZesp\xf3\u0142 portalu Ochotnicy Warszawscy\nochotnicy@ochotnicy.pl\n\n----\n\nJe\u017celi nie rejestrowa\u0142e\u015b si\u0119 na stronie https://ochotnicy.waw.pl/, zignoruj prosz\u0119 niniejsz\u0105 wiadomo\u015b\u0107. Prawdopodobnie kto\u015b pomyli\u0142 si\u0119 wpisuj\u0105c sw\xf3j adres e-mail.\n\nWiadomo\u015b\u0107 wys\u0142ana automatycznie przez portal Ochotnicy Warszawscy - https://ochotnicy.waw.pl/\nCopyright (C) Pracownia bada\u0144 i innowacji spo\u0142ecznych Stocznia http://stocznia.org.pl\nDevelopment & Hosting - TEONITE http://teonite.com'
328setts
329<Settings: Default settings>
330subject
331u'Doko\u0144czenie rejestracji w portalu'
332/usr/local/lib/python2.7/dist-packages/django/contrib/auth/models.py in email_user
333 "Returns the short name for the user."
334 return self.first_name
335 def email_user(self, subject, message, from_email=None):
336 """
337 Sends an email to this User.
338 """
339 send_mail(subject, message, from_email, [self.email])
340...
341 def get_profile(self):
342 """
343 Returns site-specific profile for this user. Raises
344 SiteProfileNotAvailable if this site does not allow profiles.
345 """
346â–¶ Local vars
347Variable Value
348message
349u'Witaj MissAsumay,\n\nDzi\u0119kujemy za rejestracj\u0119 na portalu Ochotnicy Warszawscy.\n\nProsimy o klikni\u0119cie w poni\u017cszy link celem potwierdzenia adresu e-mail.\nhttps://ochotnicy.waw.pl//activation/031889c09bc91612e93f4813a84fd7c347cad5ca\n\nPozdrawiamy\nZesp\xf3\u0142 portalu Ochotnicy Warszawscy\nochotnicy@ochotnicy.pl\n\n----\n\nJe\u017celi nie rejestrowa\u0142e\u015b si\u0119 na stronie https://ochotnicy.waw.pl/, zignoruj prosz\u0119 niniejsz\u0105 wiadomo\u015b\u0107. Prawdopodobnie kto\u015b pomyli\u0142 si\u0119 wpisuj\u0105c sw\xf3j adres e-mail.\n\nWiadomo\u015b\u0107 wys\u0142ana automatycznie przez portal Ochotnicy Warszawscy - https://ochotnicy.waw.pl/\nCopyright (C) Pracownia bada\u0144 i innowacji spo\u0142ecznych Stocznia http://stocznia.org.pl\nDevelopment & Hosting - TEONITE http://teonite.com'
350from_email
351'webmaster@localhost'
352self
353<User: MissAsumay>
354subject
355u'Doko\u0144czenie rejestracji w portalu'
356/usr/local/lib/python2.7/dist-packages/django/core/mail/__init__.py in send_mail
357 Note: The API for this method is frozen. New code wanting to extend the
358 functionality should use the EmailMessage class directly.
359 """
360 connection = connection or get_connection(username=auth_user,
361 password=auth_password,
362 fail_silently=fail_silently)
363 return EmailMessage(subject, message, from_email, recipient_list,
364 connection=connection).send()
365...
366def send_mass_mail(datatuple, fail_silently=False, auth_user=None,
367 auth_password=None, connection=None):
368 """
369 Given a datatuple of (subject, message, from_email, recipient_list), sends
370â–¶ Local vars
371Variable Value
372fail_silently
373False
374recipient_list
375[u'dorota.kurak@hotmail.com']
376from_email
377'webmaster@localhost'
378connection
379<django.core.mail.backends.smtp.EmailBackend object at 0x7fb52896b0d0>
380auth_user
381None
382message
383u'Witaj MissAsumay,\n\nDzi\u0119kujemy za rejestracj\u0119 na portalu Ochotnicy Warszawscy.\n\nProsimy o klikni\u0119cie w poni\u017cszy link celem potwierdzenia adresu e-mail.\nhttps://ochotnicy.waw.pl//activation/031889c09bc91612e93f4813a84fd7c347cad5ca\n\nPozdrawiamy\nZesp\xf3\u0142 portalu Ochotnicy Warszawscy\nochotnicy@ochotnicy.pl\n\n----\n\nJe\u017celi nie rejestrowa\u0142e\u015b si\u0119 na stronie https://ochotnicy.waw.pl/, zignoruj prosz\u0119 niniejsz\u0105 wiadomo\u015b\u0107. Prawdopodobnie kto\u015b pomyli\u0142 si\u0119 wpisuj\u0105c sw\xf3j adres e-mail.\n\nWiadomo\u015b\u0107 wys\u0142ana automatycznie przez portal Ochotnicy Warszawscy - https://ochotnicy.waw.pl/\nCopyright (C) Pracownia bada\u0144 i innowacji spo\u0142ecznych Stocznia http://stocznia.org.pl\nDevelopment & Hosting - TEONITE http://teonite.com'
384auth_password
385None
386subject
387u'Doko\u0144czenie rejestracji w portalu'
388/usr/local/lib/python2.7/dist-packages/django/core/mail/message.py in send
389 def send(self, fail_silently=False):
390 """Sends the email message."""
391 if not self.recipients():
392 # Don't bother creating the network connection if there's nobody to
393 # send to.
394 return 0
395 return self.get_connection(fail_silently).send_messages([self])
396...
397 def attach(self, filename=None, content=None, mimetype=None):
398 """
399 Attaches a file with the given filename and content. The filename can
400 be omitted and the mimetype is guessed, if not provided.
401â–¶ Local vars
402Variable Value
403fail_silently
404False
405self
406<django.core.mail.message.EmailMessage object at 0x7fb5299e2410>
407/usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py in send_messages
408 """
409 Sends one or more EmailMessage objects and returns the number of email
410 messages sent.
411 """
412 if not email_messages:
413 return
414 with self._lock:
415 new_conn_created = self.open()
416...
417 if not self.connection:
418 # We failed silently on open().
419 # Trying to send would be pointless.
420 return
421 num_sent = 0
422 for message in email_messages:
423â–¶ Local vars
424Variable Value
425email_messages
426[<django.core.mail.message.EmailMessage object at 0x7fb5299e2410>]
427self
428<django.core.mail.backends.smtp.EmailBackend object at 0x7fb52896b0d0>
429/usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py in open
430 if self.connection:
431 # Nothing to do if the connection is already open.
432 return False
433 try:
434 # If local_hostname is not specified, socket.getfqdn() gets used.
435 # For performance, we use the cached FQDN for local_hostname.
436 self.connection = smtplib.SMTP(self.host, self.port,
437 local_hostname=DNS_NAME.get_fqdn())
438...
439 if self.use_tls:
440 self.connection.ehlo()
441 self.connection.starttls()
442 self.connection.ehlo()
443 if self.username and self.password:
444 self.connection.login(self.username, self.password)
445â–¶ Local vars
446Variable Value
447self
448<django.core.mail.backends.smtp.EmailBackend object at 0x7fb52896b0d0>
449/usr/lib/python2.7/smtplib.py in __init__
450 HELO/EHLO command. Otherwise, the local hostname is found using
451 socket.getfqdn().
452 """
453 self.timeout = timeout
454 self.esmtp_features = {}
455 if host:
456 (code, msg) = self.connect(host, port)
457...
458 if code != 220:
459 raise SMTPConnectError(code, msg)
460 if local_hostname is not None:
461 self.local_hostname = local_hostname
462 else:
463 # RFC 2821 says we should use the fqdn in the EHLO/HELO verb, and
464â–¶ Local vars
465Variable Value
466local_hostname
467'964331421c19'
468host
469'smtp.googlemail.com'
470port
471587
472timeout
473<object object at 0x7fb53baff0b0>
474self
475<smtplib.SMTP instance at 0x7fb528d11ab8>
476/usr/lib/python2.7/smtplib.py in connect
477 port = int(port)
478 except ValueError:
479 raise socket.error, "nonnumeric port"
480 if not port:
481 port = self.default_port
482 if self.debuglevel > 0:
483 print>>stderr, 'connect:', (host, port)
484 self.sock = self._get_socket(host, port, self.timeout)
485...
486 (code, msg) = self.getreply()
487 if self.debuglevel > 0:
488 print>>stderr, "connect:", msg
489 return (code, msg)
490 def send(self, str):
491â–¶ Local vars
492Variable Value
493host
494'smtp.googlemail.com'
495port
496587
497self
498<smtplib.SMTP instance at 0x7fb528d11ab8>
499/usr/lib/python2.7/smtplib.py in _get_socket
500 self.debuglevel = debuglevel
501 def _get_socket(self, host, port, timeout):
502 # This makes it simpler for SMTP_SSL to use the SMTP connect code
503 # and just alter the socket connection bit.
504 if self.debuglevel > 0:
505 print>>stderr, 'connect:', (host, port)
506 return socket.create_connection((host, port), timeout)
507...
508 def connect(self, host='localhost', port=0):
509 """Connect to a host on a given port.
510 If the hostname ends with a colon (`:') followed by a number, and
511 there is no port specified, that suffix will be stripped off and the
512â–¶ Local vars
513Variable Value
514host
515'smtp.googlemail.com'
516port
517587
518timeout
519<object object at 0x7fb53baff0b0>
520self
521<smtplib.SMTP instance at 0x7fb528d11ab8>
522/usr/lib/python2.7/socket.py in create_connection
523 except error as _:
524 err = _
525 if sock is not None:
526 sock.close()
527 if err is not None:
528 raise err
529...
530 else:
531 raise error("getaddrinfo returns an empty list")
532â–¶ Local vars
533Variable Value
534err
535error(101, 'Network is unreachable')
536af
53710
538canonname
539''
540proto
5416
542sock
543<socket._socketobject object at 0x7fb529e88e50>
544host
545'smtp.googlemail.com'
546_
547error(101, 'Network is unreachable')
548timeout
549<object object at 0x7fb53baff0b0>
550res
551(10, 1, 6, '', ('2a00:1450:4010:c0f::10', 587, 0, 0))
552socktype
5531
554sa
555('2a00:1450:4010:c0f::10', 587, 0, 0)
556source_address
557None
558port
559587
560address
561('smtp.googlemail.com', 587)
562Environment: Request Method: POST Request URL: https://ochotnicy.waw.pl/v1/api/users/ Django Version: 1.6.8 Python Version: 2.7.6 Installed Applications: ('suit', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'django_filters', 'django_countries', 'rest_framework', 'corsheaders', 'rest_framework.authtoken', 'registration_api', 'south', 'easy_thumbnails', 'apps.api', 'import_export', 'notification', 'django_hstore', 'reversion', 'haystack', 'app_metrics', 'raven.contrib.django.raven_compat', 'djcelery') Installed Middleware: ('corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'apps.api.middleware.HeaderMiddleware', 'reversion.middleware.RevisionMiddleware') Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 112. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py" in wrapped_view 57. return view_func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/rest_framework/viewsets.py" in view 79. return self.dispatch(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch 403. response = self.handle_exception(exc) File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch 400. response = handler(request, *args, **kwargs) File "./apps/api/views.py" in create 2206. user = self.create_inactive_user(**user_data) File "/usr/local/lib/python2.7/dist-packages/django/db/transaction.py" in inner 371. return func(*args, **kwargs) File "./apps/api/views.py" in create_inactive_user 2235. self.send_activation_email(new_user, site) File "./apps/api/views.py" in send_activation_email 2254. user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL) File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/models.py" in email_user 413. send_mail(subject, message, from_email, [self.email]) File "/usr/local/lib/python2.7/dist-packages/django/core/mail/__init__.py" in send_mail 50. connection=connection).send() File "/usr/local/lib/python2.7/dist-packages/django/core/mail/message.py" in send 276. return self.get_connection(fail_silently).send_messages([self]) File "/usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py" in send_messages 87. new_conn_created = self.open() File "/usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py" in open 48. local_hostname=DNS_NAME.get_fqdn()) File "/usr/lib/python2.7/smtplib.py" in __init__ 256. (code, msg) = self.connect(host, port) File "/usr/lib/python2.7/smtplib.py" in connect 316. self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python2.7/smtplib.py" in _get_socket 291. return socket.create_connection((host, port), timeout) File "/usr/lib/python2.7/socket.py" in create_connection 571. raise err Exception Type: error at /v1/api/users/ Exception Value: [Errno 101] Network is unreachable
563
564Request information
565
566GET
567
568No GET data
569
570POST
571
572No POST data
573
574FILES
575
576No FILES data
577
578COOKIES
579
580Variable Value
581sessionid
582'rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'
583privacyOpen
584'True'
585META
586
587Variable Value
588HTTP_COOKIE
589'privacyOpen=True; sessionid=rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'
590SCRIPT_NAME
591u''
592REQUEST_METHOD
593'POST'
594PATH_INFO
595u'/v1/api/users/'
596HTTP_ORIGIN
597'https://ochotnicy.waw.pl'
598SERVER_PROTOCOL
599'HTTP/1.0'
600QUERY_STRING
601''
602HTTP_X_REAL_IP
603'89.75.187.144'
604CONTENT_LENGTH
605'84'
606HTTP_USER_AGENT
607'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36'
608HTTP_CONNECTION
609'close'
610HTTP_REFERER
611'https://ochotnicy.waw.pl/'
612SERVER_NAME
613'964331421c19'
614REMOTE_ADDR
615'172.17.0.6'
616wsgi.url_scheme
617'https'
618SERVER_PORT
619'8080'
620uwsgi.node
621'964331421c19'
622HTTP_X_FORWARDED_PROTO
623'https'
624wsgi.input
625<uwsgi._Input object at 0x7fb528b236d8>
626HTTP_HOST
627'ochotnicy.waw.pl'
628wsgi.multithread
629False
630REQUEST_URI
631'/v1/api/users/?'
632HTTP_ACCEPT
633'application/json, text/plain, */*'
634wsgi.version
635(1, 0)
636wsgi.run_once
637False
638wsgi.errors
639<open file 'wsgi_errors', mode 'w' at 0x7fb537fad270>
640wsgi.multiprocess
641True
642HTTP_ACCEPT_LANGUAGE
643'pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2,it;q=0.2'
644uwsgi.version
645'2.0.11.2'
646CONTENT_TYPE
647'application/json;charset=UTF-8'
648wsgi.file_wrapper
649''
650CSRF_COOKIE
651u'8jJChhG1YAqqLOV7lCaEFToEEXVADVdI'
652HTTP_ACCEPT_ENCODING
653'gzip, deflate, br'
654Settings
655
656Using settings module conf.localsettings
657
658Setting Value
659USE_L10N
660True
661USE_THOUSAND_SEPARATOR
662False
663CSRF_COOKIE_SECURE
664False
665LANGUAGE_CODE
666'pl-pl'
667ROOT_URLCONF
668'conf.urls'
669MANAGERS
670(('TEONITE Admin', 'admin@teonite.com'),)
671DEFAULT_CHARSET
672'utf-8'
673CORS_ALLOW_HEADERS
674['x-requested-with',
675 'content-type',
676 'accept',
677 'origin',
678 'authorization',
679 'x-csrftoken',
680 'content-disposition']
681SESSION_SERIALIZER
682'django.contrib.sessions.serializers.JSONSerializer'
683STATIC_ROOT
684'/code/static'
685ALLOWED_HOSTS
686[]
687MESSAGE_STORAGE
688'django.contrib.messages.storage.fallback.FallbackStorage'
689EMAIL_SUBJECT_PREFIX
690'[Django] '
691SEND_BROKEN_LINK_EMAILS
692False
693STATICFILES_FINDERS
694('django.contrib.staticfiles.finders.FileSystemFinder',
695 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
696SESSION_CACHE_ALIAS
697'default'
698THUMBNAIL_DIR
699'original-images'
700SESSION_COOKIE_DOMAIN
701None
702SESSION_COOKIE_NAME
703'sessionid'
704VERSION
705'1.0'
706ADMIN_FOR
707()
708TIME_INPUT_FORMATS
709('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')
710DATABASES
711{'default': {'ATOMIC_REQUESTS': False,
712 'AUTOCOMMIT': True,
713 'CONN_MAX_AGE': 0,
714 'ENGINE': 'django.db.backends.postgresql_psycopg2',
715 'HOST': 'db',
716 'NAME': 'wolontariat',
717 'OPTIONS': {},
718 'PASSWORD': u'********************',
719 'PORT': '5432',
720 'TEST_CHARSET': None,
721 'TEST_COLLATION': None,
722 'TEST_MIRROR': None,
723 'TEST_NAME': None,
724 'TIME_ZONE': 'Europe/Warsaw',
725 'USER': 'wolontariat'}}
726SENTRY_CONFIGURED
727False
728FILE_UPLOAD_PERMISSIONS
729None
730FILE_UPLOAD_HANDLERS
731('django.core.files.uploadhandler.MemoryFileUploadHandler',
732 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
733DEFAULT_CONTENT_TYPE
734'text/html'
735SOCIALACCOUNT_PROVIDERS
736{'facebook': {'METHOD': 'oauth2',
737 'SCOPE': ['public_profile', 'email'],
738 'VERIFIED_EMAIL': True},
739 'google': {'AUTH_PARAMS': {'access_type': 'online'},
740 'SCOPE': ['profile', 'email']},
741 'twitter': {'SCOPE': ['r_emailaddress']}}
742APPEND_SLASH
743True
744LOCALE_PATHS
745()
746DATABASE_ROUTERS
747[]
748YEAR_MONTH_FORMAT
749'F Y'
750STATICFILES_STORAGE
751'django.contrib.staticfiles.storage.StaticFilesStorage'
752CACHES
753{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
754TEMPLATE_DIR
755'/code/templates'
756SERVER_EMAIL
757'root@localhost'
758CORS_EXPOSE_HEADERS
759['X-Backend-Version']
760GRAYLOG_CONFIGURED
761False
762MIDDLEWARE_CLASSES
763('corsheaders.middleware.CorsMiddleware',
764 'django.middleware.common.CommonMiddleware',
765 'django.contrib.sessions.middleware.SessionMiddleware',
766 'django.middleware.csrf.CsrfViewMiddleware',
767 'django.contrib.auth.middleware.AuthenticationMiddleware',
768 'django.contrib.messages.middleware.MessageMiddleware',
769 'apps.api.middleware.HeaderMiddleware',
770 'reversion.middleware.RevisionMiddleware')
771USE_I18N
772True
773THOUSAND_SEPARATOR
774','
775SECRET_KEY
776u'********************'
777LANGUAGE_COOKIE_NAME
778'django_language'
779DEFAULT_INDEX_TABLESPACE
780''
781TRANSACTIONS_MANAGED
782False
783LOGGING_CONFIG
784'django.utils.log.dictConfig'
785SIGNING_BACKEND
786'django.core.signing.TimestampSigner'
787TEMPLATE_LOADERS
788('django.template.loaders.filesystem.Loader',
789 'django.template.loaders.app_directories.Loader')
790FIRST_DAY_OF_WEEK
7910
792WSGI_APPLICATION
793None
794TEMPLATE_DEBUG
795True
796X_FRAME_OPTIONS
797'SAMEORIGIN'
798CSRF_COOKIE_NAME
799'csrftoken'
800HAYSTACK_CONNECTIONS
801{'default': {'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
802 'INDEX_NAME': 'ochotnicy',
803 'URL': 'http://elastic:9200/'}}
804FORCE_SCRIPT_NAME
805None
806USE_X_FORWARDED_HOST
807False
808CORS_ALLOW_CREDENTIALS
809True
810AUTH_LDAP_GROUP_TYPE
811<django_auth_ldap.config.GroupOfUniqueNamesType object at 0x7fb534af1790>
812ACCOUNT_ACTIVATION_DAYS
8137
814SESSION_COOKIE_SECURE
815False
816BASE_URL
817''
818CSRF_COOKIE_DOMAIN
819None
820FILE_CHARSET
821'utf-8'
822DEBUG
823True
824SESSION_FILE_PATH
825None
826DEFAULT_FILE_STORAGE
827'django.core.files.storage.FileSystemStorage'
828INSTALLED_APPS
829('suit',
830 'django.contrib.auth',
831 'django.contrib.contenttypes',
832 'django.contrib.sessions',
833 'django.contrib.sites',
834 'django.contrib.messages',
835 'django.contrib.staticfiles',
836 'django.contrib.admin',
837 'allauth',
838 'allauth.account',
839 'allauth.socialaccount',
840 'allauth.socialaccount.providers.facebook',
841 'allauth.socialaccount.providers.google',
842 'allauth.socialaccount.providers.twitter',
843 'django_filters',
844 'django_countries',
845 'rest_framework',
846 'corsheaders',
847 'rest_framework.authtoken',
848 'registration_api',
849 'south',
850 'easy_thumbnails',
851 'apps.api',
852 'import_export',
853 'notification',
854 'django_hstore',
855 'reversion',
856 'haystack',
857 'app_metrics',
858 'raven.contrib.django.raven_compat',
859 'djcelery')
860LANGUAGES
861(('af', 'Afrikaans'),
862 ('ar', 'Arabic'),
863 ('az', 'Azerbaijani'),
864 ('bg', 'Bulgarian'),
865 ('be', 'Belarusian'),
866 ('bn', 'Bengali'),
867 ('br', 'Breton'),
868 ('bs', 'Bosnian'),
869 ('ca', 'Catalan'),
870 ('cs', 'Czech'),
871 ('cy', 'Welsh'),
872 ('da', 'Danish'),
873 ('de', 'German'),
874 ('el', 'Greek'),
875 ('en', 'English'),
876 ('en-gb', 'British English'),
877 ('eo', 'Esperanto'),
878 ('es', 'Spanish'),
879 ('es-ar', 'Argentinian Spanish'),
880 ('es-mx', 'Mexican Spanish'),
881 ('es-ni', 'Nicaraguan Spanish'),
882 ('es-ve', 'Venezuelan Spanish'),
883 ('et', 'Estonian'),
884 ('eu', 'Basque'),
885 ('fa', 'Persian'),
886 ('fi', 'Finnish'),
887 ('fr', 'French'),
888 ('fy-nl', 'Frisian'),
889 ('ga', 'Irish'),
890 ('gl', 'Galician'),
891 ('he', 'Hebrew'),
892 ('hi', 'Hindi'),
893 ('hr', 'Croatian'),
894 ('hu', 'Hungarian'),
895 ('ia', 'Interlingua'),
896 ('id', 'Indonesian'),
897 ('is', 'Icelandic'),
898 ('it', 'Italian'),
899 ('ja', 'Japanese'),
900 ('ka', 'Georgian'),
901 ('kk', 'Kazakh'),
902 ('km', 'Khmer'),
903 ('kn', 'Kannada'),
904 ('ko', 'Korean'),
905 ('lb', 'Luxembourgish'),
906 ('lt', 'Lithuanian'),
907 ('lv', 'Latvian'),
908 ('mk', 'Macedonian'),
909 ('ml', 'Malayalam'),
910 ('mn', 'Mongolian'),
911 ('my', 'Burmese'),
912 ('nb', 'Norwegian Bokmal'),
913 ('ne', 'Nepali'),
914 ('nl', 'Dutch'),
915 ('nn', 'Norwegian Nynorsk'),
916 ('os', 'Ossetic'),
917 ('pa', 'Punjabi'),
918 ('pl', 'Polish'),
919 ('pt', 'Portuguese'),
920 ('pt-br', 'Brazilian Portuguese'),
921 ('ro', 'Romanian'),
922 ('ru', 'Russian'),
923 ('sk', 'Slovak'),
924 ('sl', 'Slovenian'),
925 ('sq', 'Albanian'),
926 ('sr', 'Serbian'),
927 ('sr-latn', 'Serbian Latin'),
928 ('sv', 'Swedish'),
929 ('sw', 'Swahili'),
930 ('ta', 'Tamil'),
931 ('te', 'Telugu'),
932 ('th', 'Thai'),
933 ('tr', 'Turkish'),
934 ('tt', 'Tatar'),
935 ('udm', 'Udmurt'),
936 ('uk', 'Ukrainian'),
937 ('ur', 'Urdu'),
938 ('vi', 'Vietnamese'),
939 ('zh-cn', 'Simplified Chinese'),
940 ('zh-tw', 'Traditional Chinese'))
941COMMENTS_ALLOW_PROFANITIES
942False
943STATICFILES_DIRS
944('/code/templates/static', '/code/media')
945PREPEND_WWW
946False
947SECURE_PROXY_SSL_HEADER
948None
949SESSION_COOKIE_HTTPONLY
950True
951DEBUG_PROPAGATE_EXCEPTIONS
952False
953CELERY_CONFIG
954{'backend': 'redis://redis:6379/0', 'broker': 'redis://redis:6379/0'}
955MONTH_DAY_FORMAT
956'F j'
957LOGIN_URL
958'/login'
959SESSION_EXPIRE_AT_BROWSER_CLOSE
960False
961RAVEN_CONFIG
962{u'auto_log_stacks': None,
963 u'context': None,
964 'dsn': 'https://e9489b06fdf44f35bbfefd3bdb295cac:df1ea230d1354953beb7480228db63c7@sentry.teonite.net/17?&verify_ssl=0',
965 u'exclude_paths': None,
966 u'include_paths': set(['allauth',
967 'allauth.account',
968 'allauth.socialaccount',
969 'allauth.socialaccount.providers.facebook',
970 'allauth.socialaccount.providers.google',
971 'allauth.socialaccount.providers.twitter',
972 'app_metrics',
973 'apps.api',
974 'corsheaders',
975 'django.contrib.admin',
976 'django.contrib.auth',
977 'django.contrib.contenttypes',
978 'django.contrib.messages',
979 'django.contrib.sessions',
980 'django.contrib.sites',
981 'django.contrib.staticfiles',
982 'django_countries',
983 'django_filters',
984 'django_hstore',
985 'djcelery',
986 'easy_thumbnails',
987 'haystack',
988 'import_export',
989 'notification',
990 'raven.contrib.django.raven_compat',
991 'registration_api',
992 'rest_framework',
993 'rest_framework.authtoken',
994 'reversion',
995 'south',
996 'suit']),
997 u'key': '65453a9e45a6f2f12e935f347440774a',
998 u'list_max_length': None,
999 u'name': None,
1000 u'processors': None,
1001 u'project': None,
1002 u'public_key': None,
1003 u'secret_key': None,
1004 u'servers': None,
1005 u'site': None,
1006 u'string_max_length': None,
1007 u'timeout': None}
1008TIME_FORMAT
1009'P'
1010AUTH_USER_MODEL
1011'auth.User'
1012DATE_INPUT_FORMATS
1013('%Y-%m-%d',
1014 '%m/%d/%Y',
1015 '%m/%d/%y',
1016 '%b %d %Y',
1017 '%b %d, %Y',
1018 '%d %b %Y',
1019 '%d %b, %Y',
1020 '%B %d %Y',
1021 '%B %d, %Y',
1022 '%d %B %Y',
1023 '%d %B, %Y')
1024AUTH_LDAP_USER_FLAGS_BY_GROUP
1025{'is_staff': 'cn=core,dc=teonite,dc=com',
1026 'is_superuser': 'cn=core,dc=teonite,dc=com'}
1027AUTHENTICATION_BACKENDS
1028('django.contrib.auth.backends.ModelBackend',
1029 'django_auth_ldap.backend.LDAPBackend')
1030EMAIL_HOST_PASSWORD
1031u'********************'
1032REGISTRATION_API_ACTIVATION_SUCCESS_URL
1033u'********************'
1034PASSWORD_RESET_TIMEOUT_DAYS
1035u'********************'
1036PATH_ROOT
1037'/code'
1038CACHE_MIDDLEWARE_ALIAS
1039'default'
1040SESSION_SAVE_EVERY_REQUEST
1041False
1042NUMBER_GROUPING
10430
1044BACKEND_VERSION
1045'0.9.10-54c28a7'
1046SESSION_ENGINE
1047'django.contrib.sessions.backends.db'
1048CSRF_FAILURE_VIEW
1049'django.views.csrf.csrf_failure'
1050AUTH_LDAP_GROUP_SEARCH
1051<django_auth_ldap.config.LDAPSearch object at 0x7fb534af16d0>
1052LOGIN_REDIRECT_URL
1053'/accounts/profile/'
1054SESSION_COOKIE_PATH
1055'/'
1056DECIMAL_SEPARATOR
1057'.'
1058IGNORABLE_404_URLS
1059()
1060AUTH_LDAP_USER_DN_TEMPLATE
1061'cn=%(user)s,ou=workers,dc=teonite,dc=com'
1062CSRF_COOKIE_PATH
1063'/'
1064TEMPLATE_STRING_IF_INVALID
1065''
1066LOGOUT_URL
1067'/logout'
1068EMAIL_USE_TLS
1069True
1070FIXTURE_DIRS
1071('/code/conf/fixtures',)
1072EMAIL_HOST
1073'smtp.googlemail.com'
1074DATE_FORMAT
1075'N j, Y'
1076MEDIA_ROOT
1077'/code/media'
1078DEFAULT_EXCEPTION_REPORTER_FILTER
1079'django.views.debug.SafeExceptionReporterFilter'
1080ADMINS
1081(('TEONITE Admin', 'admin@teonite.com'),)
1082FORMAT_MODULE_PATH
1083None
1084DEFAULT_FROM_EMAIL
1085'webmaster@localhost'
1086REST_FRAMEWORK
1087{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication',
1088 'rest_framework.authentication.TokenAuthentication',
1089 'rest_framework.authentication.BasicAuthentication'),
1090 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',),
1091 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
1092 'MAX_PAGINATE_BY': 100,
1093 'PAGINATE_BY': 10,
1094 'PAGINATE_BY_PARAM': 'limit'}
1095MEDIA_URL
1096'/media/'
1097DATETIME_FORMAT
1098'Y/m/d H:i:s,u'
1099TEMPLATE_DIRS
1100('/code/templates',)
1101SITE_ID
11021
1103DISALLOWED_USER_AGENTS
1104()
1105ALLOWED_INCLUDE_ROOTS
1106()
1107AUTH_LDAP_USER_ATTR_MAP
1108{'email': 'mail', 'first_name': 'givenName', 'last_name': 'sn'}
1109CELERY_TIMEZONE
1110'Europe/Warsaw'
1111LOGGING
1112{'disable_existing_loggers': True,
1113 'formatters': {'colored': {'format': '[%(levelname)1.1s %(asctime)s] %(message)s'},
1114 'simple': {'format': '[%(levelname)s] %(asctime)s %(module)s: %(message)s'},
1115 'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d: %(message)s'}},
1116 'handlers': {'console': {'class': 'logging.StreamHandler',
1117 'formatter': 'simple',
1118 'level': 'DEBUG'},
1119 'file': {'class': 'logging.FileHandler',
1120 'filename': '/code/logs/debug.log',
1121 'formatter': 'colored',
1122 'level': 'DEBUG'}},
1123 'loggers': {'apps': {'handlers': ['console', 'file'],
1124 'level': 'DEBUG',
1125 'propagate': False},
1126 'django': {'handlers': ['file'],
1127 'level': 'INFO',
1128 'propagate': True}},
1129 'root': {'handlers': ['console', 'file'], 'level': 'ERROR'},
1130 'version': 1}
1131PROJECT_DIR
1132'/code/conf'
1133PROJECT_NAME
1134'PROJECT_NAME'
1135TEST_RUNNER
1136'django.test.runner.DiscoverRunner'
1137SHORT_DATE_FORMAT
1138'm/d/Y'
1139CACHE_MIDDLEWARE_KEY_PREFIX
1140u'********************'
1141TIME_ZONE
1142'Europe/Warsaw'
1143CORS_ORIGIN_ALLOW_ALL
1144True
1145FILE_UPLOAD_MAX_MEMORY_SIZE
11462621440
1147EMAIL_BACKEND
1148'django.core.mail.backends.smtp.EmailBackend'
1149DEFAULT_TABLESPACE
1150''
1151TEMPLATE_CONTEXT_PROCESSORS
1152('django.contrib.auth.context_processors.auth',
1153 'django.core.context_processors.debug',
1154 'django.core.context_processors.i18n',
1155 'django.core.context_processors.media',
1156 'django.core.context_processors.static',
1157 'django.core.context_processors.tz',
1158 'django.core.context_processors.request',
1159 'django.contrib.messages.context_processors.messages',
1160 'allauth.account.context_processors.account',
1161 'allauth.socialaccount.context_processors.socialaccount')
1162SESSION_COOKIE_AGE
11631209600
1164SYSTEM_MAIL
1165'portal@ochotnicy.pl'
1166SETTINGS_MODULE
1167'conf.localsettings'
1168USE_ETAGS
1169False
1170LANGUAGES_BIDI
1171('he', 'ar', 'fa', 'ur')
1172HAYSTACK_SIGNAL_PROCESSOR
1173'haystack.signals.RealtimeSignalProcessor'
1174FILE_UPLOAD_TEMP_DIR
1175None
1176INTERNAL_IPS
1177()
1178STATIC_URL
1179'/static/'
1180AUTH_LDAP_SERVER_URI
1181'ldap://ldap.teonite.net:1389'
1182EMAIL_PORT
1183587
1184USE_TZ
1185False
1186SHORT_DATETIME_FORMAT
1187'm/d/Y P'
1188PASSWORD_HASHERS
1189u'********************'
1190ACCOUNT_UNIQUE_EMAIL
1191False
1192ABSOLUTE_URL_OVERRIDES
1193{}
1194CELERYBEAT_SCHEDULE
1195{'metrics': {'args': (),
1196 'schedule': datetime.timedelta(0, 300),
1197 'task': 'apps.api.tasks.metrics'},
1198 'notify': {'args': (),
1199 'schedule': datetime.timedelta(0, 60),
1200 'task': 'apps.api.tasks.notification'}}
1201CACHE_MIDDLEWARE_SECONDS
1202600
1203CSRF_COOKIE_HTTPONLY
1204False
1205DATETIME_INPUT_FORMATS
1206('%Y-%m-%d %H:%M:%S',
1207 '%Y-%m-%d %H:%M:%S.%f',
1208 '%Y-%m-%d %H:%M',
1209 '%Y-%m-%d',
1210 '%m/%d/%Y %H:%M:%S',
1211 '%m/%d/%Y %H:%M:%S.%f',
1212 '%m/%d/%Y %H:%M',
1213 '%m/%d/%Y',
1214 '%m/%d/%y %H:%M:%S',
1215 '%m/%d/%y %H:%M:%S.%f',
1216 '%m/%d/%y %H:%M',
1217 '%m/%d/%y')
1218EMAIL_HOST_USER
1219'notification@teonite.com'
1220PROFANITIES_LIST
1221u'********************'
1222You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.