Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error at /v1/api/users/
- [Errno 101] Network is unreachable
- Request Method: POST
- Request URL: https://ochotnicy.waw.pl/v1/api/users/
- Django Version: 1.6.8
- Exception Type: error
- Exception Value:
- [Errno 101] Network is unreachable
- Exception Location: /usr/lib/python2.7/socket.py in create_connection, line 571
- Python Executable: /usr/local/bin/uwsgi
- Python Version: 2.7.6
- Python Path:
- ['/code/apps',
- '.',
- '',
- '/usr/local/lib/python2.7/dist-packages/pip-7.1.2-py2.7.egg',
- '/usr/lib/python2.7',
- '/usr/lib/python2.7/plat-x86_64-linux-gnu',
- '/usr/lib/python2.7/lib-tk',
- '/usr/lib/python2.7/lib-old',
- '/usr/lib/python2.7/lib-dynload',
- '/usr/local/lib/python2.7/dist-packages',
- '/usr/lib/python2.7/dist-packages',
- '/code']
- Server time: Nd, 19 Czerw 2016 15:29:11 +0200
- Traceback Switch to copy-and-paste view
- /usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response
- response = middleware_method(request, callback, callback_args, callback_kwargs)
- if response:
- break
- if response is None:
- wrapped_callback = self.make_view_atomic(callback)
- try:
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- ...
- except Exception as e:
- # If the view raised an exception, run it through exception
- # middleware, and if the exception middleware returns a
- # response, use that. Otherwise, reraise the exception.
- for middleware_method in self._exception_middleware:
- response = middleware_method(request, e)
- ▶ Local vars
- Variable Value
- e
- error(101, 'Network is unreachable')
- callback_args
- ()
- resolver_match
- ResolverMatch(func=<function UserViewSet at 0x7fb52a62a8c0>, args=(), kwargs={}, url_name='users-list', app_name='None', namespace='')
- middleware_method
- <bound method RevisionMiddleware.process_exception of <reversion.middleware.RevisionMiddleware object at 0x7fb53371b350>>
- self
- <django.core.handlers.wsgi.WSGIHandler object at 0x7fb53bae7590>
- request
- "<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)}>"
- callback
- <function UserViewSet at 0x7fb52a62a8c0>
- wrapped_callback
- <function UserViewSet at 0x7fb52a62a8c0>
- resolver
- <RegexURLResolver 'conf.urls' (None:None) ^/>
- callback_kwargs
- {}
- response
- None
- urlconf
- 'conf.urls'
- /usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py in wrapped_view
- """
- Marks a view function as being exempt from the CSRF view protection.
- """
- # We could just do view_func.csrf_exempt = True, but decorators
- # are nicer if they don't have side-effects, so we return a new
- # function.
- def wrapped_view(*args, **kwargs):
- return view_func(*args, **kwargs)
- ...
- wrapped_view.csrf_exempt = True
- return wraps(view_func, assigned=available_attrs(view_func))(wrapped_view)
- ▶ Local vars
- Variable Value
- args
- (<WSGIRequest
- path:/v1/api/users/,
- GET:<QueryDict: {}>,
- POST:<could not parse>,
- COOKIES:{'privacyOpen': 'True', 'sessionid': 'rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'},
- META:{'CONTENT_LENGTH': '84',
- 'CONTENT_TYPE': 'application/json;charset=UTF-8',
- u'CSRF_COOKIE': u'8jJChhG1YAqqLOV7lCaEFToEEXVADVdI',
- 'HTTP_ACCEPT': 'application/json, text/plain, */*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br',
- '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',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'privacyOpen=True; sessionid=rg0jtvs7n8eyyc5s38q68ijupnwkn9ie',
- 'HTTP_HOST': 'ochotnicy.waw.pl',
- 'HTTP_ORIGIN': 'https://ochotnicy.waw.pl',
- 'HTTP_REFERER': 'https://ochotnicy.waw.pl/',
- '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',
- 'HTTP_X_FORWARDED_PROTO': 'https',
- 'HTTP_X_REAL_IP': '89.75.187.144',
- 'PATH_INFO': u'/v1/api/users/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '172.17.0.6',
- 'REQUEST_METHOD': 'POST',
- 'REQUEST_URI': '/v1/api/users/?',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '964331421c19',
- 'SERVER_PORT': '8080',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'uwsgi.node': '964331421c19',
- 'uwsgi.version': '2.0.11.2',
- 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fb537fad270>,
- 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,
- 'wsgi.input': <uwsgi._Input object at 0x7fb528b236d8>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'https',
- 'wsgi.version': (1, 0)}>,)
- view_func
- <function UserViewSet at 0x7fb52a62a848>
- kwargs
- {}
- /usr/local/lib/python2.7/dist-packages/rest_framework/viewsets.py in view
- setattr(self, method, handler)
- # Patch this in as it's otherwise only present from 1.5 onwards
- if hasattr(self, 'get') and not hasattr(self, 'head'):
- self.head = self.get
- # And continue as usual
- return self.dispatch(request, *args, **kwargs)
- ...
- # take name and docstring from class
- update_wrapper(view, cls, updated=())
- # and possible attributes set by decorators
- # like csrf_exempt from dispatch
- ▶ Local vars
- Variable Value
- initkwargs
- {u'suffix': u'List'}
- self
- <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
- args
- ()
- request
- "<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)}>"
- actions
- {u'post': u'create'}
- handler
- <bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
- kwargs
- {}
- action
- u'create'
- method
- u'post'
- cls
- <class 'apps.api.views.UserViewSet'>
- /usr/local/lib/python2.7/dist-packages/rest_framework/views.py in dispatch
- self.http_method_not_allowed)
- else:
- handler = self.http_method_not_allowed
- response = handler(request, *args, **kwargs)
- except Exception as exc:
- response = self.handle_exception(exc)
- ...
- self.response = self.finalize_response(request, response, *args, **kwargs)
- return self.response
- def options(self, request, *args, **kwargs):
- """
- ▶ Local vars
- Variable Value
- exc
- error(101, 'Network is unreachable')
- self
- <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
- args
- ()
- request
- <rest_framework.request.Request object at 0x7fb5299e2090>
- handler
- <bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
- kwargs
- {}
- /usr/local/lib/python2.7/dist-packages/rest_framework/views.py in dispatch
- # Get the appropriate handler method
- if request.method.lower() in self.http_method_names:
- handler = getattr(self, request.method.lower(),
- self.http_method_not_allowed)
- else:
- handler = self.http_method_not_allowed
- response = handler(request, *args, **kwargs)
- ...
- except Exception as exc:
- response = self.handle_exception(exc)
- self.response = self.finalize_response(request, response, *args, **kwargs)
- return self.response
- ▶ Local vars
- Variable Value
- exc
- error(101, 'Network is unreachable')
- self
- <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
- args
- ()
- request
- <rest_framework.request.Request object at 0x7fb5299e2090>
- handler
- <bound method UserViewSet.create of <apps.api.views.UserViewSet object at 0x7fb5299c6e90>>
- kwargs
- {}
- ./apps/api/views.py in create
- def create(self, request, *args, **kwargs):
- self.debug_request(request)
- serialized = UserSerializer(data=request.DATA)
- if serialized.is_valid():
- user_data = utils.get_user_data(request.DATA)
- user = self.create_inactive_user(**user_data)
- ...
- user_profile = UserProfile(user=user, organization_member=None)
- user_profile.save()
- target = NotificationTarget(user=user, target=user.email, backend=1, active=True)
- target.save()
- ▶ Local vars
- Variable Value
- serialized
- <apps.api.serializers.UserSerializer object at 0x7fb5299e2b90>
- self
- <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
- args
- ()
- request
- <rest_framework.request.Request object at 0x7fb5299e2090>
- user_data
- {u'email': u'dorota.kurak@hotmail.com',
- u'password': u'Paciaciaki',
- u'username': u'MissAsumay'}
- kwargs
- {}
- /usr/local/lib/python2.7/dist-packages/django/db/transaction.py in inner
- else:
- connection.in_atomic_block = False
- def __call__(self, func):
- @wraps(func, assigned=available_attrs(func))
- def inner(*args, **kwargs):
- with self:
- return func(*args, **kwargs)
- ...
- return inner
- def atomic(using=None, savepoint=True):
- # Bare decorator: @atomic -- although the first argument is called
- # `using`, it's actually the function being decorated.
- ▶ Local vars
- Variable Value
- self
- <django.db.transaction.Atomic object at 0x7fb52afd5910>
- args
- (<apps.api.views.UserViewSet object at 0x7fb5299c6e90>,)
- func
- <function create_inactive_user at 0x7fb52afdb320>
- kwargs
- {u'email': u'dorota.kurak@hotmail.com',
- u'password': u'Paciaciaki',
- u'username': u'MissAsumay'}
- ./apps/api/views.py in create_inactive_user
- new_user = user_model.objects.create_user(username, email, password)
- else:
- new_user = user_model.objects.create_user(email=email, password=password)
- new_user.is_active = False
- new_user.save()
- create_profile(new_user)
- site = Site.objects.get_current()
- self.send_activation_email(new_user, site)
- ...
- return new_user
- def send_activation_email(self, user, site):
- setts = Settings.objects.get(settings__contains=['instance_url'])
- ctx_dict = {'activation_key': user.api_registration_profile.activation_key,
- ▶ Local vars
- Variable Value
- username
- u'MissAsumay'
- user_model
- <class 'django.contrib.auth.models.User'>
- new_user
- <User: MissAsumay>
- self
- <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
- site
- <Site: localhost:8000>
- password
- u'Paciaciaki'
- email
- u'dorota.kurak@hotmail.com'
- ./apps/api/views.py in send_activation_email
- 'instance_name': setts.settings['instance_name']}
- subject = render_to_string('registration_api/activation_email_subject.txt',
- ctx_dict)
- # Email subject *must not* contain newlines
- subject = ''.join(subject.splitlines())
- message = render_to_string('registration_api/activation_email.txt',
- ctx_dict)
- user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
- ...
- def update(self, request, *args, **kwargs):
- self.debug_request(request)
- serializer = UserSerializer
- ▶ Local vars
- Variable Value
- ctx_dict
- {'activation_key': '031889c09bc91612e93f4813a84fd7c347cad5ca',
- 'contact_email': u'ochotnicy@ochotnicy.pl',
- 'expiration_days': 7,
- 'instance_name': u'Warszawscy',
- 'instance_url': u'https://ochotnicy.waw.pl/',
- 'name': u'MissAsumay',
- 'site': <Site: localhost:8000>}
- self
- <apps.api.views.UserViewSet object at 0x7fb5299c6e90>
- site
- <Site: localhost:8000>
- user
- <User: MissAsumay>
- message
- 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'
- setts
- <Settings: Default settings>
- subject
- u'Doko\u0144czenie rejestracji w portalu'
- /usr/local/lib/python2.7/dist-packages/django/contrib/auth/models.py in email_user
- "Returns the short name for the user."
- return self.first_name
- def email_user(self, subject, message, from_email=None):
- """
- Sends an email to this User.
- """
- send_mail(subject, message, from_email, [self.email])
- ...
- def get_profile(self):
- """
- Returns site-specific profile for this user. Raises
- SiteProfileNotAvailable if this site does not allow profiles.
- """
- ▶ Local vars
- Variable Value
- message
- 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'
- from_email
- 'webmaster@localhost'
- self
- <User: MissAsumay>
- subject
- u'Doko\u0144czenie rejestracji w portalu'
- /usr/local/lib/python2.7/dist-packages/django/core/mail/__init__.py in send_mail
- Note: The API for this method is frozen. New code wanting to extend the
- functionality should use the EmailMessage class directly.
- """
- connection = connection or get_connection(username=auth_user,
- password=auth_password,
- fail_silently=fail_silently)
- return EmailMessage(subject, message, from_email, recipient_list,
- connection=connection).send()
- ...
- def send_mass_mail(datatuple, fail_silently=False, auth_user=None,
- auth_password=None, connection=None):
- """
- Given a datatuple of (subject, message, from_email, recipient_list), sends
- ▶ Local vars
- Variable Value
- fail_silently
- False
- recipient_list
- [u'dorota.kurak@hotmail.com']
- from_email
- 'webmaster@localhost'
- connection
- <django.core.mail.backends.smtp.EmailBackend object at 0x7fb52896b0d0>
- auth_user
- None
- message
- 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'
- auth_password
- None
- subject
- u'Doko\u0144czenie rejestracji w portalu'
- /usr/local/lib/python2.7/dist-packages/django/core/mail/message.py in send
- def send(self, fail_silently=False):
- """Sends the email message."""
- if not self.recipients():
- # Don't bother creating the network connection if there's nobody to
- # send to.
- return 0
- return self.get_connection(fail_silently).send_messages([self])
- ...
- def attach(self, filename=None, content=None, mimetype=None):
- """
- Attaches a file with the given filename and content. The filename can
- be omitted and the mimetype is guessed, if not provided.
- ▶ Local vars
- Variable Value
- fail_silently
- False
- self
- <django.core.mail.message.EmailMessage object at 0x7fb5299e2410>
- /usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py in send_messages
- """
- Sends one or more EmailMessage objects and returns the number of email
- messages sent.
- """
- if not email_messages:
- return
- with self._lock:
- new_conn_created = self.open()
- ...
- if not self.connection:
- # We failed silently on open().
- # Trying to send would be pointless.
- return
- num_sent = 0
- for message in email_messages:
- ▶ Local vars
- Variable Value
- email_messages
- [<django.core.mail.message.EmailMessage object at 0x7fb5299e2410>]
- self
- <django.core.mail.backends.smtp.EmailBackend object at 0x7fb52896b0d0>
- /usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py in open
- if self.connection:
- # Nothing to do if the connection is already open.
- return False
- try:
- # If local_hostname is not specified, socket.getfqdn() gets used.
- # For performance, we use the cached FQDN for local_hostname.
- self.connection = smtplib.SMTP(self.host, self.port,
- local_hostname=DNS_NAME.get_fqdn())
- ...
- if self.use_tls:
- self.connection.ehlo()
- self.connection.starttls()
- self.connection.ehlo()
- if self.username and self.password:
- self.connection.login(self.username, self.password)
- ▶ Local vars
- Variable Value
- self
- <django.core.mail.backends.smtp.EmailBackend object at 0x7fb52896b0d0>
- /usr/lib/python2.7/smtplib.py in __init__
- HELO/EHLO command. Otherwise, the local hostname is found using
- socket.getfqdn().
- """
- self.timeout = timeout
- self.esmtp_features = {}
- if host:
- (code, msg) = self.connect(host, port)
- ...
- if code != 220:
- raise SMTPConnectError(code, msg)
- if local_hostname is not None:
- self.local_hostname = local_hostname
- else:
- # RFC 2821 says we should use the fqdn in the EHLO/HELO verb, and
- ▶ Local vars
- Variable Value
- local_hostname
- '964331421c19'
- host
- 'smtp.googlemail.com'
- port
- 587
- timeout
- <object object at 0x7fb53baff0b0>
- self
- <smtplib.SMTP instance at 0x7fb528d11ab8>
- /usr/lib/python2.7/smtplib.py in connect
- port = int(port)
- except ValueError:
- raise socket.error, "nonnumeric port"
- if not port:
- port = self.default_port
- if self.debuglevel > 0:
- print>>stderr, 'connect:', (host, port)
- self.sock = self._get_socket(host, port, self.timeout)
- ...
- (code, msg) = self.getreply()
- if self.debuglevel > 0:
- print>>stderr, "connect:", msg
- return (code, msg)
- def send(self, str):
- ▶ Local vars
- Variable Value
- host
- 'smtp.googlemail.com'
- port
- 587
- self
- <smtplib.SMTP instance at 0x7fb528d11ab8>
- /usr/lib/python2.7/smtplib.py in _get_socket
- self.debuglevel = debuglevel
- def _get_socket(self, host, port, timeout):
- # This makes it simpler for SMTP_SSL to use the SMTP connect code
- # and just alter the socket connection bit.
- if self.debuglevel > 0:
- print>>stderr, 'connect:', (host, port)
- return socket.create_connection((host, port), timeout)
- ...
- def connect(self, host='localhost', port=0):
- """Connect to a host on a given port.
- If the hostname ends with a colon (`:') followed by a number, and
- there is no port specified, that suffix will be stripped off and the
- ▶ Local vars
- Variable Value
- host
- 'smtp.googlemail.com'
- port
- 587
- timeout
- <object object at 0x7fb53baff0b0>
- self
- <smtplib.SMTP instance at 0x7fb528d11ab8>
- /usr/lib/python2.7/socket.py in create_connection
- except error as _:
- err = _
- if sock is not None:
- sock.close()
- if err is not None:
- raise err
- ...
- else:
- raise error("getaddrinfo returns an empty list")
- ▶ Local vars
- Variable Value
- err
- error(101, 'Network is unreachable')
- af
- 10
- canonname
- ''
- proto
- 6
- sock
- <socket._socketobject object at 0x7fb529e88e50>
- host
- 'smtp.googlemail.com'
- _
- error(101, 'Network is unreachable')
- timeout
- <object object at 0x7fb53baff0b0>
- res
- (10, 1, 6, '', ('2a00:1450:4010:c0f::10', 587, 0, 0))
- socktype
- 1
- sa
- ('2a00:1450:4010:c0f::10', 587, 0, 0)
- source_address
- None
- port
- 587
- address
- ('smtp.googlemail.com', 587)
- 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
- Request information
- GET
- No GET data
- POST
- No POST data
- FILES
- No FILES data
- COOKIES
- Variable Value
- sessionid
- 'rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'
- privacyOpen
- 'True'
- META
- Variable Value
- HTTP_COOKIE
- 'privacyOpen=True; sessionid=rg0jtvs7n8eyyc5s38q68ijupnwkn9ie'
- SCRIPT_NAME
- u''
- REQUEST_METHOD
- 'POST'
- PATH_INFO
- u'/v1/api/users/'
- HTTP_ORIGIN
- 'https://ochotnicy.waw.pl'
- SERVER_PROTOCOL
- 'HTTP/1.0'
- QUERY_STRING
- ''
- HTTP_X_REAL_IP
- '89.75.187.144'
- CONTENT_LENGTH
- '84'
- 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'
- HTTP_CONNECTION
- 'close'
- HTTP_REFERER
- 'https://ochotnicy.waw.pl/'
- SERVER_NAME
- '964331421c19'
- REMOTE_ADDR
- '172.17.0.6'
- wsgi.url_scheme
- 'https'
- SERVER_PORT
- '8080'
- uwsgi.node
- '964331421c19'
- HTTP_X_FORWARDED_PROTO
- 'https'
- wsgi.input
- <uwsgi._Input object at 0x7fb528b236d8>
- HTTP_HOST
- 'ochotnicy.waw.pl'
- wsgi.multithread
- False
- REQUEST_URI
- '/v1/api/users/?'
- HTTP_ACCEPT
- 'application/json, text/plain, */*'
- wsgi.version
- (1, 0)
- wsgi.run_once
- False
- wsgi.errors
- <open file 'wsgi_errors', mode 'w' at 0x7fb537fad270>
- wsgi.multiprocess
- True
- 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'
- uwsgi.version
- '2.0.11.2'
- CONTENT_TYPE
- 'application/json;charset=UTF-8'
- wsgi.file_wrapper
- ''
- CSRF_COOKIE
- u'8jJChhG1YAqqLOV7lCaEFToEEXVADVdI'
- HTTP_ACCEPT_ENCODING
- 'gzip, deflate, br'
- Settings
- Using settings module conf.localsettings
- Setting Value
- USE_L10N
- True
- USE_THOUSAND_SEPARATOR
- False
- CSRF_COOKIE_SECURE
- False
- LANGUAGE_CODE
- 'pl-pl'
- ROOT_URLCONF
- 'conf.urls'
- MANAGERS
- (('TEONITE Admin', 'admin@teonite.com'),)
- DEFAULT_CHARSET
- 'utf-8'
- CORS_ALLOW_HEADERS
- ['x-requested-with',
- 'content-type',
- 'accept',
- 'origin',
- 'authorization',
- 'x-csrftoken',
- 'content-disposition']
- SESSION_SERIALIZER
- 'django.contrib.sessions.serializers.JSONSerializer'
- STATIC_ROOT
- '/code/static'
- ALLOWED_HOSTS
- []
- MESSAGE_STORAGE
- 'django.contrib.messages.storage.fallback.FallbackStorage'
- EMAIL_SUBJECT_PREFIX
- '[Django] '
- SEND_BROKEN_LINK_EMAILS
- False
- STATICFILES_FINDERS
- ('django.contrib.staticfiles.finders.FileSystemFinder',
- 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
- SESSION_CACHE_ALIAS
- 'default'
- THUMBNAIL_DIR
- 'original-images'
- SESSION_COOKIE_DOMAIN
- None
- SESSION_COOKIE_NAME
- 'sessionid'
- VERSION
- '1.0'
- ADMIN_FOR
- ()
- TIME_INPUT_FORMATS
- ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')
- DATABASES
- {'default': {'ATOMIC_REQUESTS': False,
- 'AUTOCOMMIT': True,
- 'CONN_MAX_AGE': 0,
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'HOST': 'db',
- 'NAME': 'wolontariat',
- 'OPTIONS': {},
- 'PASSWORD': u'********************',
- 'PORT': '5432',
- 'TEST_CHARSET': None,
- 'TEST_COLLATION': None,
- 'TEST_MIRROR': None,
- 'TEST_NAME': None,
- 'TIME_ZONE': 'Europe/Warsaw',
- 'USER': 'wolontariat'}}
- SENTRY_CONFIGURED
- False
- FILE_UPLOAD_PERMISSIONS
- None
- FILE_UPLOAD_HANDLERS
- ('django.core.files.uploadhandler.MemoryFileUploadHandler',
- 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
- DEFAULT_CONTENT_TYPE
- 'text/html'
- SOCIALACCOUNT_PROVIDERS
- {'facebook': {'METHOD': 'oauth2',
- 'SCOPE': ['public_profile', 'email'],
- 'VERIFIED_EMAIL': True},
- 'google': {'AUTH_PARAMS': {'access_type': 'online'},
- 'SCOPE': ['profile', 'email']},
- 'twitter': {'SCOPE': ['r_emailaddress']}}
- APPEND_SLASH
- True
- LOCALE_PATHS
- ()
- DATABASE_ROUTERS
- []
- YEAR_MONTH_FORMAT
- 'F Y'
- STATICFILES_STORAGE
- 'django.contrib.staticfiles.storage.StaticFilesStorage'
- CACHES
- {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
- TEMPLATE_DIR
- '/code/templates'
- SERVER_EMAIL
- 'root@localhost'
- CORS_EXPOSE_HEADERS
- ['X-Backend-Version']
- GRAYLOG_CONFIGURED
- False
- MIDDLEWARE_CLASSES
- ('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')
- USE_I18N
- True
- THOUSAND_SEPARATOR
- ','
- SECRET_KEY
- u'********************'
- LANGUAGE_COOKIE_NAME
- 'django_language'
- DEFAULT_INDEX_TABLESPACE
- ''
- TRANSACTIONS_MANAGED
- False
- LOGGING_CONFIG
- 'django.utils.log.dictConfig'
- SIGNING_BACKEND
- 'django.core.signing.TimestampSigner'
- TEMPLATE_LOADERS
- ('django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader')
- FIRST_DAY_OF_WEEK
- 0
- WSGI_APPLICATION
- None
- TEMPLATE_DEBUG
- True
- X_FRAME_OPTIONS
- 'SAMEORIGIN'
- CSRF_COOKIE_NAME
- 'csrftoken'
- HAYSTACK_CONNECTIONS
- {'default': {'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
- 'INDEX_NAME': 'ochotnicy',
- 'URL': 'http://elastic:9200/'}}
- FORCE_SCRIPT_NAME
- None
- USE_X_FORWARDED_HOST
- False
- CORS_ALLOW_CREDENTIALS
- True
- AUTH_LDAP_GROUP_TYPE
- <django_auth_ldap.config.GroupOfUniqueNamesType object at 0x7fb534af1790>
- ACCOUNT_ACTIVATION_DAYS
- 7
- SESSION_COOKIE_SECURE
- False
- BASE_URL
- ''
- CSRF_COOKIE_DOMAIN
- None
- FILE_CHARSET
- 'utf-8'
- DEBUG
- True
- SESSION_FILE_PATH
- None
- DEFAULT_FILE_STORAGE
- 'django.core.files.storage.FileSystemStorage'
- INSTALLED_APPS
- ('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')
- LANGUAGES
- (('af', 'Afrikaans'),
- ('ar', 'Arabic'),
- ('az', 'Azerbaijani'),
- ('bg', 'Bulgarian'),
- ('be', 'Belarusian'),
- ('bn', 'Bengali'),
- ('br', 'Breton'),
- ('bs', 'Bosnian'),
- ('ca', 'Catalan'),
- ('cs', 'Czech'),
- ('cy', 'Welsh'),
- ('da', 'Danish'),
- ('de', 'German'),
- ('el', 'Greek'),
- ('en', 'English'),
- ('en-gb', 'British English'),
- ('eo', 'Esperanto'),
- ('es', 'Spanish'),
- ('es-ar', 'Argentinian Spanish'),
- ('es-mx', 'Mexican Spanish'),
- ('es-ni', 'Nicaraguan Spanish'),
- ('es-ve', 'Venezuelan Spanish'),
- ('et', 'Estonian'),
- ('eu', 'Basque'),
- ('fa', 'Persian'),
- ('fi', 'Finnish'),
- ('fr', 'French'),
- ('fy-nl', 'Frisian'),
- ('ga', 'Irish'),
- ('gl', 'Galician'),
- ('he', 'Hebrew'),
- ('hi', 'Hindi'),
- ('hr', 'Croatian'),
- ('hu', 'Hungarian'),
- ('ia', 'Interlingua'),
- ('id', 'Indonesian'),
- ('is', 'Icelandic'),
- ('it', 'Italian'),
- ('ja', 'Japanese'),
- ('ka', 'Georgian'),
- ('kk', 'Kazakh'),
- ('km', 'Khmer'),
- ('kn', 'Kannada'),
- ('ko', 'Korean'),
- ('lb', 'Luxembourgish'),
- ('lt', 'Lithuanian'),
- ('lv', 'Latvian'),
- ('mk', 'Macedonian'),
- ('ml', 'Malayalam'),
- ('mn', 'Mongolian'),
- ('my', 'Burmese'),
- ('nb', 'Norwegian Bokmal'),
- ('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'),
- ('th', 'Thai'),
- ('tr', 'Turkish'),
- ('tt', 'Tatar'),
- ('udm', 'Udmurt'),
- ('uk', 'Ukrainian'),
- ('ur', 'Urdu'),
- ('vi', 'Vietnamese'),
- ('zh-cn', 'Simplified Chinese'),
- ('zh-tw', 'Traditional Chinese'))
- COMMENTS_ALLOW_PROFANITIES
- False
- STATICFILES_DIRS
- ('/code/templates/static', '/code/media')
- PREPEND_WWW
- False
- SECURE_PROXY_SSL_HEADER
- None
- SESSION_COOKIE_HTTPONLY
- True
- DEBUG_PROPAGATE_EXCEPTIONS
- False
- CELERY_CONFIG
- {'backend': 'redis://redis:6379/0', 'broker': 'redis://redis:6379/0'}
- MONTH_DAY_FORMAT
- 'F j'
- LOGIN_URL
- '/login'
- SESSION_EXPIRE_AT_BROWSER_CLOSE
- False
- RAVEN_CONFIG
- {u'auto_log_stacks': None,
- u'context': None,
- 'dsn': 'https://e9489b06fdf44f35bbfefd3bdb295cac:df1ea230d1354953beb7480228db63c7@sentry.teonite.net/17?&verify_ssl=0',
- u'exclude_paths': None,
- u'include_paths': set(['allauth',
- 'allauth.account',
- 'allauth.socialaccount',
- 'allauth.socialaccount.providers.facebook',
- 'allauth.socialaccount.providers.google',
- 'allauth.socialaccount.providers.twitter',
- 'app_metrics',
- 'apps.api',
- 'corsheaders',
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.messages',
- 'django.contrib.sessions',
- 'django.contrib.sites',
- 'django.contrib.staticfiles',
- 'django_countries',
- 'django_filters',
- 'django_hstore',
- 'djcelery',
- 'easy_thumbnails',
- 'haystack',
- 'import_export',
- 'notification',
- 'raven.contrib.django.raven_compat',
- 'registration_api',
- 'rest_framework',
- 'rest_framework.authtoken',
- 'reversion',
- 'south',
- 'suit']),
- u'key': '65453a9e45a6f2f12e935f347440774a',
- u'list_max_length': None,
- u'name': None,
- u'processors': None,
- u'project': None,
- u'public_key': None,
- u'secret_key': None,
- u'servers': None,
- u'site': None,
- u'string_max_length': None,
- u'timeout': None}
- TIME_FORMAT
- 'P'
- AUTH_USER_MODEL
- 'auth.User'
- DATE_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')
- AUTH_LDAP_USER_FLAGS_BY_GROUP
- {'is_staff': 'cn=core,dc=teonite,dc=com',
- 'is_superuser': 'cn=core,dc=teonite,dc=com'}
- AUTHENTICATION_BACKENDS
- ('django.contrib.auth.backends.ModelBackend',
- 'django_auth_ldap.backend.LDAPBackend')
- EMAIL_HOST_PASSWORD
- u'********************'
- REGISTRATION_API_ACTIVATION_SUCCESS_URL
- u'********************'
- PASSWORD_RESET_TIMEOUT_DAYS
- u'********************'
- PATH_ROOT
- '/code'
- CACHE_MIDDLEWARE_ALIAS
- 'default'
- SESSION_SAVE_EVERY_REQUEST
- False
- NUMBER_GROUPING
- 0
- BACKEND_VERSION
- '0.9.10-54c28a7'
- SESSION_ENGINE
- 'django.contrib.sessions.backends.db'
- CSRF_FAILURE_VIEW
- 'django.views.csrf.csrf_failure'
- AUTH_LDAP_GROUP_SEARCH
- <django_auth_ldap.config.LDAPSearch object at 0x7fb534af16d0>
- LOGIN_REDIRECT_URL
- '/accounts/profile/'
- SESSION_COOKIE_PATH
- '/'
- DECIMAL_SEPARATOR
- '.'
- IGNORABLE_404_URLS
- ()
- AUTH_LDAP_USER_DN_TEMPLATE
- 'cn=%(user)s,ou=workers,dc=teonite,dc=com'
- CSRF_COOKIE_PATH
- '/'
- TEMPLATE_STRING_IF_INVALID
- ''
- LOGOUT_URL
- '/logout'
- EMAIL_USE_TLS
- True
- FIXTURE_DIRS
- ('/code/conf/fixtures',)
- EMAIL_HOST
- 'smtp.googlemail.com'
- DATE_FORMAT
- 'N j, Y'
- MEDIA_ROOT
- '/code/media'
- DEFAULT_EXCEPTION_REPORTER_FILTER
- 'django.views.debug.SafeExceptionReporterFilter'
- ADMINS
- (('TEONITE Admin', 'admin@teonite.com'),)
- FORMAT_MODULE_PATH
- None
- DEFAULT_FROM_EMAIL
- 'webmaster@localhost'
- REST_FRAMEWORK
- {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication',
- 'rest_framework.authentication.TokenAuthentication',
- 'rest_framework.authentication.BasicAuthentication'),
- 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',),
- 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
- 'MAX_PAGINATE_BY': 100,
- 'PAGINATE_BY': 10,
- 'PAGINATE_BY_PARAM': 'limit'}
- MEDIA_URL
- '/media/'
- DATETIME_FORMAT
- 'Y/m/d H:i:s,u'
- TEMPLATE_DIRS
- ('/code/templates',)
- SITE_ID
- 1
- DISALLOWED_USER_AGENTS
- ()
- ALLOWED_INCLUDE_ROOTS
- ()
- AUTH_LDAP_USER_ATTR_MAP
- {'email': 'mail', 'first_name': 'givenName', 'last_name': 'sn'}
- CELERY_TIMEZONE
- 'Europe/Warsaw'
- LOGGING
- {'disable_existing_loggers': True,
- 'formatters': {'colored': {'format': '[%(levelname)1.1s %(asctime)s] %(message)s'},
- 'simple': {'format': '[%(levelname)s] %(asctime)s %(module)s: %(message)s'},
- 'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d: %(message)s'}},
- 'handlers': {'console': {'class': 'logging.StreamHandler',
- 'formatter': 'simple',
- 'level': 'DEBUG'},
- 'file': {'class': 'logging.FileHandler',
- 'filename': '/code/logs/debug.log',
- 'formatter': 'colored',
- 'level': 'DEBUG'}},
- 'loggers': {'apps': {'handlers': ['console', 'file'],
- 'level': 'DEBUG',
- 'propagate': False},
- 'django': {'handlers': ['file'],
- 'level': 'INFO',
- 'propagate': True}},
- 'root': {'handlers': ['console', 'file'], 'level': 'ERROR'},
- 'version': 1}
- PROJECT_DIR
- '/code/conf'
- PROJECT_NAME
- 'PROJECT_NAME'
- TEST_RUNNER
- 'django.test.runner.DiscoverRunner'
- SHORT_DATE_FORMAT
- 'm/d/Y'
- CACHE_MIDDLEWARE_KEY_PREFIX
- u'********************'
- TIME_ZONE
- 'Europe/Warsaw'
- CORS_ORIGIN_ALLOW_ALL
- True
- FILE_UPLOAD_MAX_MEMORY_SIZE
- 2621440
- EMAIL_BACKEND
- 'django.core.mail.backends.smtp.EmailBackend'
- DEFAULT_TABLESPACE
- ''
- TEMPLATE_CONTEXT_PROCESSORS
- ('django.contrib.auth.context_processors.auth',
- 'django.core.context_processors.debug',
- 'django.core.context_processors.i18n',
- 'django.core.context_processors.media',
- 'django.core.context_processors.static',
- 'django.core.context_processors.tz',
- 'django.core.context_processors.request',
- 'django.contrib.messages.context_processors.messages',
- 'allauth.account.context_processors.account',
- 'allauth.socialaccount.context_processors.socialaccount')
- SESSION_COOKIE_AGE
- 1209600
- SYSTEM_MAIL
- 'portal@ochotnicy.pl'
- SETTINGS_MODULE
- 'conf.localsettings'
- USE_ETAGS
- False
- LANGUAGES_BIDI
- ('he', 'ar', 'fa', 'ur')
- HAYSTACK_SIGNAL_PROCESSOR
- 'haystack.signals.RealtimeSignalProcessor'
- FILE_UPLOAD_TEMP_DIR
- None
- INTERNAL_IPS
- ()
- STATIC_URL
- '/static/'
- AUTH_LDAP_SERVER_URI
- 'ldap://ldap.teonite.net:1389'
- EMAIL_PORT
- 587
- USE_TZ
- False
- SHORT_DATETIME_FORMAT
- 'm/d/Y P'
- PASSWORD_HASHERS
- u'********************'
- ACCOUNT_UNIQUE_EMAIL
- False
- ABSOLUTE_URL_OVERRIDES
- {}
- CELERYBEAT_SCHEDULE
- {'metrics': {'args': (),
- 'schedule': datetime.timedelta(0, 300),
- 'task': 'apps.api.tasks.metrics'},
- 'notify': {'args': (),
- 'schedule': datetime.timedelta(0, 60),
- 'task': 'apps.api.tasks.notification'}}
- CACHE_MIDDLEWARE_SECONDS
- 600
- CSRF_COOKIE_HTTPONLY
- False
- DATETIME_INPUT_FORMATS
- ('%Y-%m-%d %H:%M:%S',
- '%Y-%m-%d %H:%M:%S.%f',
- '%Y-%m-%d %H:%M',
- '%Y-%m-%d',
- '%m/%d/%Y %H:%M:%S',
- '%m/%d/%Y %H:%M:%S.%f',
- '%m/%d/%Y %H:%M',
- '%m/%d/%Y',
- '%m/%d/%y %H:%M:%S',
- '%m/%d/%y %H:%M:%S.%f',
- '%m/%d/%y %H:%M',
- '%m/%d/%y')
- EMAIL_HOST_USER
- 'notification@teonite.com'
- PROFANITIES_LIST
- u'********************'
- 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