Advertisement
missasumay

Untitled

Jun 19th, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.41 KB | None | 0 0
  1. error at /v1/api/users/
  2.  
  3. [Errno 101] Network is unreachable
  4. Request Method: POST
  5. Request URL: https://ochotnicy.waw.pl/v1/api/users/
  6. Django Version: 1.6.8
  7. Exception Type: error
  8. Exception Value:
  9. [Errno 101] Network is unreachable
  10. Exception Location: /usr/lib/python2.7/socket.py in create_connection, line 571
  11. Python Executable: /usr/local/bin/uwsgi
  12. Python Version: 2.7.6
  13. Python 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']
  26. Server time: Nd, 19 Czerw 2016 15:29:11 +0200
  27. Traceback 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
  45. Variable Value
  46. e
  47. error(101, 'Network is unreachable')
  48. callback_args
  49. ()
  50. resolver_match
  51. ResolverMatch(func=<function UserViewSet at 0x7fb52a62a8c0>, args=(), kwargs={}, url_name='users-list', app_name='None', namespace='')
  52. middleware_method
  53. <bound method RevisionMiddleware.process_exception of <reversion.middleware.RevisionMiddleware object at 0x7fb53371b350>>
  54. self
  55. <django.core.handlers.wsgi.WSGIHandler object at 0x7fb53bae7590>
  56. request
  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)}>"
  58. callback
  59. <function UserViewSet at 0x7fb52a62a8c0>
  60. wrapped_callback
  61. <function UserViewSet at 0x7fb52a62a8c0>
  62. resolver
  63. <RegexURLResolver 'conf.urls' (None:None) ^/>
  64. callback_kwargs
  65. {}
  66. response
  67. None
  68. urlconf
  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
  83. Variable Value
  84. args
  85. (<WSGIRequest
  86. path:/v1/api/users/,
  87. GET:<QueryDict: {}>,
  88. POST:<could not parse>,
  89. COOKIES:{'privacyOpen': 'True', 'sessionid': 'rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'},
  90. META:{'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)}>,)
  123. view_func
  124. <function UserViewSet at 0x7fb52a62a848>
  125. kwargs
  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
  140. Variable Value
  141. initkwargs
  142. {u'suffix': u'List'}
  143. self
  144. <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
  145. args
  146. ()
  147. request
  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)}>"
  149. actions
  150. {u'post': u'create'}
  151. handler
  152. <bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
  153. kwargs
  154. {}
  155. action
  156. u'create'
  157. method
  158. u'post'
  159. cls
  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
  174. Variable Value
  175. exc
  176. error(101, 'Network is unreachable')
  177. self
  178. <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
  179. args
  180. ()
  181. request
  182. <rest_framework.request.Request object at 0x7fb5299e2090>
  183. handler
  184. <bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
  185. kwargs
  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
  201. Variable Value
  202. exc
  203. error(101, 'Network is unreachable')
  204. self
  205. <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
  206. args
  207. ()
  208. request
  209. <rest_framework.request.Request object at 0x7fb5299e2090>
  210. handler
  211. <bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
  212. kwargs
  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
  227. Variable Value
  228. serialized
  229. <apps.api.serializers.UserSerializer object at 0x7fb5299e2b90>
  230. self
  231. <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
  232. args
  233. ()
  234. request
  235. <rest_framework.request.Request object at 0x7fb5299e2090>
  236. user_data
  237. {u'email': u'dorota.kurak@hotmail.com',
  238. u'password': u'Paciaciaki',
  239. u'username': u'MissAsumay'}
  240. kwargs
  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
  252. def 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
  256. Variable Value
  257. self
  258. <django.db.transaction.Atomic object at 0x7fb52afd5910>
  259. args
  260. (<apps.api.views.UserViewSet object at 0x7fb5299c6e90>,)
  261. func
  262. <function create_inactive_user at 0x7fb52afdb320>
  263. kwargs
  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
  282. Variable Value
  283. username
  284. u'MissAsumay'
  285. user_model
  286. <class 'django.contrib.auth.models.User'>
  287. new_user
  288. <User: MissAsumay>
  289. self
  290. <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
  291. site
  292. <Site: localhost:8000>
  293. password
  294. u'Paciaciaki'
  295. email
  296. u'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
  311. Variable Value
  312. ctx_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>}
  320. self
  321. <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
  322. site
  323. <Site: localhost:8000>
  324. user
  325. <User: MissAsumay>
  326. message
  327. u'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'
  328. setts
  329. <Settings: Default settings>
  330. subject
  331. u'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
  347. Variable Value
  348. message
  349. u'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'
  350. from_email
  351. 'webmaster@localhost'
  352. self
  353. <User: MissAsumay>
  354. subject
  355. u'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. ...
  366. def 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
  371. Variable Value
  372. fail_silently
  373. False
  374. recipient_list
  375. [u'dorota.kurak@hotmail.com']
  376. from_email
  377. 'webmaster@localhost'
  378. connection
  379. <django.core.mail.backends.smtp.EmailBackend object at 0x7fb52896b0d0>
  380. auth_user
  381. None
  382. message
  383. u'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'
  384. auth_password
  385. None
  386. subject
  387. u'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
  402. Variable Value
  403. fail_silently
  404. False
  405. self
  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
  424. Variable Value
  425. email_messages
  426. [<django.core.mail.message.EmailMessage object at 0x7fb5299e2410>]
  427. self
  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
  446. Variable Value
  447. self
  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
  465. Variable Value
  466. local_hostname
  467. '964331421c19'
  468. host
  469. 'smtp.googlemail.com'
  470. port
  471. 587
  472. timeout
  473. <object object at 0x7fb53baff0b0>
  474. self
  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
  492. Variable Value
  493. host
  494. 'smtp.googlemail.com'
  495. port
  496. 587
  497. self
  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
  513. Variable Value
  514. host
  515. 'smtp.googlemail.com'
  516. port
  517. 587
  518. timeout
  519. <object object at 0x7fb53baff0b0>
  520. self
  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
  533. Variable Value
  534. err
  535. error(101, 'Network is unreachable')
  536. af
  537. 10
  538. canonname
  539. ''
  540. proto
  541. 6
  542. sock
  543. <socket._socketobject object at 0x7fb529e88e50>
  544. host
  545. 'smtp.googlemail.com'
  546. _
  547. error(101, 'Network is unreachable')
  548. timeout
  549. <object object at 0x7fb53baff0b0>
  550. res
  551. (10, 1, 6, '', ('2a00:1450:4010:c0f::10', 587, 0, 0))
  552. socktype
  553. 1
  554. sa
  555. ('2a00:1450:4010:c0f::10', 587, 0, 0)
  556. source_address
  557. None
  558. port
  559. 587
  560. address
  561. ('smtp.googlemail.com', 587)
  562. Environment: 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.  
  564. Request information
  565.  
  566. GET
  567.  
  568. No GET data
  569.  
  570. POST
  571.  
  572. No POST data
  573.  
  574. FILES
  575.  
  576. No FILES data
  577.  
  578. COOKIES
  579.  
  580. Variable Value
  581. sessionid
  582. 'rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'
  583. privacyOpen
  584. 'True'
  585. META
  586.  
  587. Variable Value
  588. HTTP_COOKIE
  589. 'privacyOpen=True; sessionid=rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'
  590. SCRIPT_NAME
  591. u''
  592. REQUEST_METHOD
  593. 'POST'
  594. PATH_INFO
  595. u'/v1/api/users/'
  596. HTTP_ORIGIN
  597. 'https://ochotnicy.waw.pl'
  598. SERVER_PROTOCOL
  599. 'HTTP/1.0'
  600. QUERY_STRING
  601. ''
  602. HTTP_X_REAL_IP
  603. '89.75.187.144'
  604. CONTENT_LENGTH
  605. '84'
  606. HTTP_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'
  608. HTTP_CONNECTION
  609. 'close'
  610. HTTP_REFERER
  611. 'https://ochotnicy.waw.pl/'
  612. SERVER_NAME
  613. '964331421c19'
  614. REMOTE_ADDR
  615. '172.17.0.6'
  616. wsgi.url_scheme
  617. 'https'
  618. SERVER_PORT
  619. '8080'
  620. uwsgi.node
  621. '964331421c19'
  622. HTTP_X_FORWARDED_PROTO
  623. 'https'
  624. wsgi.input
  625. <uwsgi._Input object at 0x7fb528b236d8>
  626. HTTP_HOST
  627. 'ochotnicy.waw.pl'
  628. wsgi.multithread
  629. False
  630. REQUEST_URI
  631. '/v1/api/users/?'
  632. HTTP_ACCEPT
  633. 'application/json, text/plain, */*'
  634. wsgi.version
  635. (1, 0)
  636. wsgi.run_once
  637. False
  638. wsgi.errors
  639. <open file 'wsgi_errors', mode 'w' at 0x7fb537fad270>
  640. wsgi.multiprocess
  641. True
  642. HTTP_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'
  644. uwsgi.version
  645. '2.0.11.2'
  646. CONTENT_TYPE
  647. 'application/json;charset=UTF-8'
  648. wsgi.file_wrapper
  649. ''
  650. CSRF_COOKIE
  651. u'8jJChhG1YAqqLOV7lCaEFToEEXVADVdI'
  652. HTTP_ACCEPT_ENCODING
  653. 'gzip, deflate, br'
  654. Settings
  655.  
  656. Using settings module conf.localsettings
  657.  
  658. Setting Value
  659. USE_L10N
  660. True
  661. USE_THOUSAND_SEPARATOR
  662. False
  663. CSRF_COOKIE_SECURE
  664. False
  665. LANGUAGE_CODE
  666. 'pl-pl'
  667. ROOT_URLCONF
  668. 'conf.urls'
  669. MANAGERS
  670. (('TEONITE Admin', 'admin@teonite.com'),)
  671. DEFAULT_CHARSET
  672. 'utf-8'
  673. CORS_ALLOW_HEADERS
  674. ['x-requested-with',
  675. 'content-type',
  676. 'accept',
  677. 'origin',
  678. 'authorization',
  679. 'x-csrftoken',
  680. 'content-disposition']
  681. SESSION_SERIALIZER
  682. 'django.contrib.sessions.serializers.JSONSerializer'
  683. STATIC_ROOT
  684. '/code/static'
  685. ALLOWED_HOSTS
  686. []
  687. MESSAGE_STORAGE
  688. 'django.contrib.messages.storage.fallback.FallbackStorage'
  689. EMAIL_SUBJECT_PREFIX
  690. '[Django] '
  691. SEND_BROKEN_LINK_EMAILS
  692. False
  693. STATICFILES_FINDERS
  694. ('django.contrib.staticfiles.finders.FileSystemFinder',
  695. 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
  696. SESSION_CACHE_ALIAS
  697. 'default'
  698. THUMBNAIL_DIR
  699. 'original-images'
  700. SESSION_COOKIE_DOMAIN
  701. None
  702. SESSION_COOKIE_NAME
  703. 'sessionid'
  704. VERSION
  705. '1.0'
  706. ADMIN_FOR
  707. ()
  708. TIME_INPUT_FORMATS
  709. ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')
  710. DATABASES
  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'}}
  726. SENTRY_CONFIGURED
  727. False
  728. FILE_UPLOAD_PERMISSIONS
  729. None
  730. FILE_UPLOAD_HANDLERS
  731. ('django.core.files.uploadhandler.MemoryFileUploadHandler',
  732. 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
  733. DEFAULT_CONTENT_TYPE
  734. 'text/html'
  735. SOCIALACCOUNT_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']}}
  742. APPEND_SLASH
  743. True
  744. LOCALE_PATHS
  745. ()
  746. DATABASE_ROUTERS
  747. []
  748. YEAR_MONTH_FORMAT
  749. 'F Y'
  750. STATICFILES_STORAGE
  751. 'django.contrib.staticfiles.storage.StaticFilesStorage'
  752. CACHES
  753. {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  754. TEMPLATE_DIR
  755. '/code/templates'
  756. SERVER_EMAIL
  757. 'root@localhost'
  758. CORS_EXPOSE_HEADERS
  759. ['X-Backend-Version']
  760. GRAYLOG_CONFIGURED
  761. False
  762. MIDDLEWARE_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')
  771. USE_I18N
  772. True
  773. THOUSAND_SEPARATOR
  774. ','
  775. SECRET_KEY
  776. u'********************'
  777. LANGUAGE_COOKIE_NAME
  778. 'django_language'
  779. DEFAULT_INDEX_TABLESPACE
  780. ''
  781. TRANSACTIONS_MANAGED
  782. False
  783. LOGGING_CONFIG
  784. 'django.utils.log.dictConfig'
  785. SIGNING_BACKEND
  786. 'django.core.signing.TimestampSigner'
  787. TEMPLATE_LOADERS
  788. ('django.template.loaders.filesystem.Loader',
  789. 'django.template.loaders.app_directories.Loader')
  790. FIRST_DAY_OF_WEEK
  791. 0
  792. WSGI_APPLICATION
  793. None
  794. TEMPLATE_DEBUG
  795. True
  796. X_FRAME_OPTIONS
  797. 'SAMEORIGIN'
  798. CSRF_COOKIE_NAME
  799. 'csrftoken'
  800. HAYSTACK_CONNECTIONS
  801. {'default': {'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
  802. 'INDEX_NAME': 'ochotnicy',
  803. 'URL': 'http://elastic:9200/'}}
  804. FORCE_SCRIPT_NAME
  805. None
  806. USE_X_FORWARDED_HOST
  807. False
  808. CORS_ALLOW_CREDENTIALS
  809. True
  810. AUTH_LDAP_GROUP_TYPE
  811. <django_auth_ldap.config.GroupOfUniqueNamesType object at 0x7fb534af1790>
  812. ACCOUNT_ACTIVATION_DAYS
  813. 7
  814. SESSION_COOKIE_SECURE
  815. False
  816. BASE_URL
  817. ''
  818. CSRF_COOKIE_DOMAIN
  819. None
  820. FILE_CHARSET
  821. 'utf-8'
  822. DEBUG
  823. True
  824. SESSION_FILE_PATH
  825. None
  826. DEFAULT_FILE_STORAGE
  827. 'django.core.files.storage.FileSystemStorage'
  828. INSTALLED_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')
  860. LANGUAGES
  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'))
  941. COMMENTS_ALLOW_PROFANITIES
  942. False
  943. STATICFILES_DIRS
  944. ('/code/templates/static', '/code/media')
  945. PREPEND_WWW
  946. False
  947. SECURE_PROXY_SSL_HEADER
  948. None
  949. SESSION_COOKIE_HTTPONLY
  950. True
  951. DEBUG_PROPAGATE_EXCEPTIONS
  952. False
  953. CELERY_CONFIG
  954. {'backend': 'redis://redis:6379/0', 'broker': 'redis://redis:6379/0'}
  955. MONTH_DAY_FORMAT
  956. 'F j'
  957. LOGIN_URL
  958. '/login'
  959. SESSION_EXPIRE_AT_BROWSER_CLOSE
  960. False
  961. RAVEN_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}
  1008. TIME_FORMAT
  1009. 'P'
  1010. AUTH_USER_MODEL
  1011. 'auth.User'
  1012. DATE_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')
  1024. AUTH_LDAP_USER_FLAGS_BY_GROUP
  1025. {'is_staff': 'cn=core,dc=teonite,dc=com',
  1026. 'is_superuser': 'cn=core,dc=teonite,dc=com'}
  1027. AUTHENTICATION_BACKENDS
  1028. ('django.contrib.auth.backends.ModelBackend',
  1029. 'django_auth_ldap.backend.LDAPBackend')
  1030. EMAIL_HOST_PASSWORD
  1031. u'********************'
  1032. REGISTRATION_API_ACTIVATION_SUCCESS_URL
  1033. u'********************'
  1034. PASSWORD_RESET_TIMEOUT_DAYS
  1035. u'********************'
  1036. PATH_ROOT
  1037. '/code'
  1038. CACHE_MIDDLEWARE_ALIAS
  1039. 'default'
  1040. SESSION_SAVE_EVERY_REQUEST
  1041. False
  1042. NUMBER_GROUPING
  1043. 0
  1044. BACKEND_VERSION
  1045. '0.9.10-54c28a7'
  1046. SESSION_ENGINE
  1047. 'django.contrib.sessions.backends.db'
  1048. CSRF_FAILURE_VIEW
  1049. 'django.views.csrf.csrf_failure'
  1050. AUTH_LDAP_GROUP_SEARCH
  1051. <django_auth_ldap.config.LDAPSearch object at 0x7fb534af16d0>
  1052. LOGIN_REDIRECT_URL
  1053. '/accounts/profile/'
  1054. SESSION_COOKIE_PATH
  1055. '/'
  1056. DECIMAL_SEPARATOR
  1057. '.'
  1058. IGNORABLE_404_URLS
  1059. ()
  1060. AUTH_LDAP_USER_DN_TEMPLATE
  1061. 'cn=%(user)s,ou=workers,dc=teonite,dc=com'
  1062. CSRF_COOKIE_PATH
  1063. '/'
  1064. TEMPLATE_STRING_IF_INVALID
  1065. ''
  1066. LOGOUT_URL
  1067. '/logout'
  1068. EMAIL_USE_TLS
  1069. True
  1070. FIXTURE_DIRS
  1071. ('/code/conf/fixtures',)
  1072. EMAIL_HOST
  1073. 'smtp.googlemail.com'
  1074. DATE_FORMAT
  1075. 'N j, Y'
  1076. MEDIA_ROOT
  1077. '/code/media'
  1078. DEFAULT_EXCEPTION_REPORTER_FILTER
  1079. 'django.views.debug.SafeExceptionReporterFilter'
  1080. ADMINS
  1081. (('TEONITE Admin', 'admin@teonite.com'),)
  1082. FORMAT_MODULE_PATH
  1083. None
  1084. DEFAULT_FROM_EMAIL
  1085. 'webmaster@localhost'
  1086. REST_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'}
  1095. MEDIA_URL
  1096. '/media/'
  1097. DATETIME_FORMAT
  1098. 'Y/m/d H:i:s,u'
  1099. TEMPLATE_DIRS
  1100. ('/code/templates',)
  1101. SITE_ID
  1102. 1
  1103. DISALLOWED_USER_AGENTS
  1104. ()
  1105. ALLOWED_INCLUDE_ROOTS
  1106. ()
  1107. AUTH_LDAP_USER_ATTR_MAP
  1108. {'email': 'mail', 'first_name': 'givenName', 'last_name': 'sn'}
  1109. CELERY_TIMEZONE
  1110. 'Europe/Warsaw'
  1111. LOGGING
  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}
  1131. PROJECT_DIR
  1132. '/code/conf'
  1133. PROJECT_NAME
  1134. 'PROJECT_NAME'
  1135. TEST_RUNNER
  1136. 'django.test.runner.DiscoverRunner'
  1137. SHORT_DATE_FORMAT
  1138. 'm/d/Y'
  1139. CACHE_MIDDLEWARE_KEY_PREFIX
  1140. u'********************'
  1141. TIME_ZONE
  1142. 'Europe/Warsaw'
  1143. CORS_ORIGIN_ALLOW_ALL
  1144. True
  1145. FILE_UPLOAD_MAX_MEMORY_SIZE
  1146. 2621440
  1147. EMAIL_BACKEND
  1148. 'django.core.mail.backends.smtp.EmailBackend'
  1149. DEFAULT_TABLESPACE
  1150. ''
  1151. TEMPLATE_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')
  1162. SESSION_COOKIE_AGE
  1163. 1209600
  1164. SYSTEM_MAIL
  1165. 'portal@ochotnicy.pl'
  1166. SETTINGS_MODULE
  1167. 'conf.localsettings'
  1168. USE_ETAGS
  1169. False
  1170. LANGUAGES_BIDI
  1171. ('he', 'ar', 'fa', 'ur')
  1172. HAYSTACK_SIGNAL_PROCESSOR
  1173. 'haystack.signals.RealtimeSignalProcessor'
  1174. FILE_UPLOAD_TEMP_DIR
  1175. None
  1176. INTERNAL_IPS
  1177. ()
  1178. STATIC_URL
  1179. '/static/'
  1180. AUTH_LDAP_SERVER_URI
  1181. 'ldap://ldap.teonite.net:1389'
  1182. EMAIL_PORT
  1183. 587
  1184. USE_TZ
  1185. False
  1186. SHORT_DATETIME_FORMAT
  1187. 'm/d/Y P'
  1188. PASSWORD_HASHERS
  1189. u'********************'
  1190. ACCOUNT_UNIQUE_EMAIL
  1191. False
  1192. ABSOLUTE_URL_OVERRIDES
  1193. {}
  1194. CELERYBEAT_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'}}
  1201. CACHE_MIDDLEWARE_SECONDS
  1202. 600
  1203. CSRF_COOKIE_HTTPONLY
  1204. False
  1205. DATETIME_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')
  1218. EMAIL_HOST_USER
  1219. 'notification@teonite.com'
  1220. PROFANITIES_LIST
  1221. u'********************'
  1222. You'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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement