Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Tue Aug 29 06:25:02.814327 2017] [wsgi:warn] [pid 13936:tid 140412830447488] mod_wsgi: Compiled for Python/2.7.11.
- [Tue Aug 29 06:25:02.814361 2017] [wsgi:warn] [pid 13936:tid 140412830447488] mod_wsgi: Runtime using Python/2.7.12.
- [Tue Aug 29 06:25:02.815772 2017] [mpm_event:notice] [pid 13936:tid 140412830447488] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
- [Tue Aug 29 06:25:02.815802 2017] [core:notice] [pid 13936:tid 140412830447488] AH00094: Command line: '/usr/sbin/apache2'
- [Wed Aug 30 01:06:17.675591 2017] [mpm_event:notice] [pid 13936:tid 140412830447488] AH00491: caught SIGTERM, shutting down
- [Wed Aug 30 01:06:59.534323 2017] [wsgi:warn] [pid 3540:tid 139886587135872] mod_wsgi: Compiled for Python/2.7.11.
- [Wed Aug 30 01:06:59.534766 2017] [wsgi:warn] [pid 3540:tid 139886587135872] mod_wsgi: Runtime using Python/2.7.12.
- [Wed Aug 30 01:06:59.536034 2017] [mpm_event:notice] [pid 3540:tid 139886587135872] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
- [Wed Aug 30 01:06:59.536070 2017] [core:notice] [pid 3540:tid 139886587135872] AH00094: Command line: '/usr/sbin/apache2'
- [Wed Aug 30 01:08:37.016462 2017] [autoindex:error] [pid 3550:tid 139886380168960] [client 107.204.45.82:53686] AH01276: Cannot serve directory /home/dask/www/html/static/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
- [Tue Aug 29 20:08:45.611462 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] mod_wsgi (pid=3548): Exception occurred processing WSGI script '/home/dask/www/code/daskretreats_org/wsgi.py'.
- [Tue Aug 29 20:08:45.611548 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] Traceback (most recent call last):
- [Tue Aug 29 20:08:45.611582 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__
- [Tue Aug 29 20:08:45.612104 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] response = self.get_response(request)
- [Tue Aug 29 20:08:45.612130 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 124, in get_response
- [Tue Aug 29 20:08:45.612296 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] response = self._middleware_chain(request)
- [Tue Aug 29 20:08:45.612315 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 44, in inner
- [Tue Aug 29 20:08:45.612419 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] response = response_for_exception(request, exc)
- [Tue Aug 29 20:08:45.612438 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 94, in response_for_exception
- [Tue Aug 29 20:08:45.612464 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
- [Tue Aug 29 20:08:45.612475 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 143, in handle_uncaught_exception
- [Tue Aug 29 20:08:45.612492 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return callback(request, **param_dict)
- [Tue Aug 29 20:08:45.612503 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
- [Tue Aug 29 20:08:45.613832 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] response = view_func(request, *args, **kwargs)
- [Tue Aug 29 20:08:45.613859 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/mezzanine/core/views.py", line 231, in server_error
- [Tue Aug 29 20:08:45.614875 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return HttpResponseServerError(t.render(context, request))
- [Tue Aug 29 20:08:45.614900 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/backends/django.py", line 66, in render
- [Tue Aug 29 20:08:45.615546 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.template.render(context)
- [Tue Aug 29 20:08:45.615568 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 208, in render
- [Tue Aug 29 20:08:45.616554 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self._render(context)
- [Tue Aug 29 20:08:45.616580 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
- [Tue Aug 29 20:08:45.616611 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.nodelist.render(context)
- [Tue Aug 29 20:08:45.616625 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 994, in render
- [Tue Aug 29 20:08:45.616644 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] bit = node.render_annotated(context)
- [Tue Aug 29 20:08:45.616655 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated
- [Tue Aug 29 20:08:45.616671 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.render(context)
- [Tue Aug 29 20:08:45.616683 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 174, in render
- [Tue Aug 29 20:08:45.616683 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 174, in render
- [Tue Aug 29 20:08:45.617010 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return compiled_parent._render(context)
- [Tue Aug 29 20:08:45.617032 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
- [Tue Aug 29 20:08:45.617060 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.nodelist.render(context)
- [Tue Aug 29 20:08:45.617073 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 994, in render
- [Tue Aug 29 20:08:45.617091 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] bit = node.render_annotated(context)
- [Tue Aug 29 20:08:45.617102 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated
- [Tue Aug 29 20:08:45.617118 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.render(context)
- [Tue Aug 29 20:08:45.617130 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 308, in render
- [Tue Aug 29 20:08:45.618332 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] match = condition.eval(context)
- [Tue Aug 29 20:08:45.618371 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 868, in eval
- [Tue Aug 29 20:08:45.618406 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.value.resolve(context, ignore_failures=True)
- [Tue Aug 29 20:08:45.618421 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 711, in resolve
- [Tue Aug 29 20:08:45.618446 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] obj = self.var.resolve(context)
- [Tue Aug 29 20:08:45.618461 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 852, in resolve
- [Tue Aug 29 20:08:45.618479 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] value = self._resolve_lookup(context)
- [Tue Aug 29 20:08:45.618489 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/template/base.py", line 885, in _resolve_lookup
- [Tue Aug 29 20:08:45.618502 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] current = current[bit]
- [Tue Aug 29 20:08:45.618514 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/mezzanine/conf/context_processors.py", line 42, in __getitem__
- [Tue Aug 29 20:08:45.618878 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return getattr(self.settings, k)
- [Tue Aug 29 20:08:45.618897 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/mezzanine/conf/__init__.py", line 238, in __getattr__
- [Tue Aug 29 20:08:45.619412 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] editable_cache = self._get_editable(request=self._current_request)
- [Tue Aug 29 20:08:45.619439 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/mezzanine/conf/__init__.py", line 152, in _get_editable
- [Tue Aug 29 20:08:45.619465 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] editable_settings = self._load()
- [Tue Aug 29 20:08:45.619473 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/mezzanine/conf/__init__.py", line 193, in _load
- [Tue Aug 29 20:08:45.619484 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] for setting_obj in Setting.objects.all():
- [Tue Aug 29 20:08:45.619491 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 160, in all
- [Tue Aug 29 20:08:45.619577 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.get_queryset()
- [Tue Aug 29 20:08:45.619594 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/mezzanine/core/managers.py", line 378, in get_queryset
- [Tue Aug 29 20:08:45.620409 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] lookup = {self.__field_name + "__id__exact": current_site_id()}
- [Tue Aug 29 20:08:45.620428 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/mezzanine/utils/sites.py", line 44, in current_site_id
- [Tue Aug 29 20:08:45.620960 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] site_id = request.session.get("site_id", None)
- [Tue Aug 29 20:08:45.620986 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 68, in get
- [Tue Aug 29 20:08:45.621147 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self._session.get(key, default)
- [Tue Aug 29 20:08:45.621169 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 207, in _get_session
- [Tue Aug 29 20:08:45.621195 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self._session_cache = self.load()
- [Tue Aug 29 20:08:45.621209 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py", line 35, in load
- [Tue Aug 29 20:08:45.621274 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] expire_date__gt=timezone.now()
- [Tue Aug 29 20:08:45.621284 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
- [Tue Aug 29 20:08:45.621298 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return getattr(self.get_queryset(), name)(*args, **kwargs)
- [Tue Aug 29 20:08:45.621305 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 379, in get
- [Tue Aug 29 20:08:45.621733 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] num = len(clone)
- [Tue Aug 29 20:08:45.621747 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 238, in __len__
- [Tue Aug 29 20:08:45.621768 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self._fetch_all()
- [Tue Aug 29 20:08:45.621781 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 1087, in _fetch_all
- [Tue Aug 29 20:08:45.621805 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self._result_cache = list(self.iterator())
- [Tue Aug 29 20:08:45.621814 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 54, in __iter__
- [Tue Aug 29 20:08:45.621825 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] results = compiler.execute_sql()
- [Tue Aug 29 20:08:45.621833 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 833, in execute_sql
- [Tue Aug 29 20:08:45.622114 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] cursor = self.connection.cursor()
- [Tue Aug 29 20:08:45.622125 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 233, in cursor
- [Tue Aug 29 20:08:45.622315 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] cursor = self.make_cursor(self._cursor())
- [Tue Aug 29 20:08:45.622335 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 204, in _cursor
- [Tue Aug 29 20:08:45.622353 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.ensure_connection()
- [Tue Aug 29 20:08:45.622398 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
- [Tue Aug 29 20:08:45.622413 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connect()
- [Tue Aug 29 20:08:45.622420 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
- [Tue Aug 29 20:08:45.622507 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] six.reraise(dj_exc_type, dj_exc_value, traceback)
- [Tue Aug 29 20:08:45.622517 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
- [Tue Aug 29 20:08:45.622529 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connect()
- [Tue Aug 29 20:08:45.622536 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 171, in connect
- [Tue Aug 29 20:08:45.622545 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connection = self.get_new_connection(conn_params)
- [Tue Aug 29 20:08:45.621284 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
- [Tue Aug 29 20:08:45.621298 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return getattr(self.get_queryset(), name)(*args, **kwargs)
- [Tue Aug 29 20:08:45.621305 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 379, in get
- [Tue Aug 29 20:08:45.621733 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] num = len(clone)
- [Tue Aug 29 20:08:45.621747 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 238, in __len__
- [Tue Aug 29 20:08:45.621768 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self._fetch_all()
- [Tue Aug 29 20:08:45.621781 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 1087, in _fetch_all
- [Tue Aug 29 20:08:45.621805 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self._result_cache = list(self.iterator())
- [Tue Aug 29 20:08:45.621814 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 54, in __iter__
- [Tue Aug 29 20:08:45.621825 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] results = compiler.execute_sql()
- [Tue Aug 29 20:08:45.621833 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 833, in execute_sql
- [Tue Aug 29 20:08:45.622114 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] cursor = self.connection.cursor()
- [Tue Aug 29 20:08:45.622125 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 233, in cursor
- [Tue Aug 29 20:08:45.622315 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] cursor = self.make_cursor(self._cursor())
- [Tue Aug 29 20:08:45.622335 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 204, in _cursor
- [Tue Aug 29 20:08:45.622353 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.ensure_connection()
- [Tue Aug 29 20:08:45.622398 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
- [Tue Aug 29 20:08:45.622413 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connect()
- [Tue Aug 29 20:08:45.622420 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
- [Tue Aug 29 20:08:45.622507 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] six.reraise(dj_exc_type, dj_exc_value, traceback)
- [Tue Aug 29 20:08:45.622517 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
- [Tue Aug 29 20:08:45.622529 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connect()
- [Tue Aug 29 20:08:45.622536 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 171, in connect
- [Tue Aug 29 20:08:45.622545 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connection = self.get_new_connection(conn_params)
- [Tue Aug 29 20:08:45.622553 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
- [Tue Aug 29 20:08:45.622675 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] connection = Database.connect(**conn_params)
- [Tue Aug 29 20:08:45.622689 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] File "/home/dask/www/venv/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 130, in connect
- [Tue Aug 29 20:08:45.622762 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- [Tue Aug 29 20:08:45.622799 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] OperationalError: FATAL: Peer authentication failed for user "dask"
- [Tue Aug 29 20:08:45.622802 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044]
- (venv) dask@dask:~/www/secrets$ python
- Python 2.7.12 (default, Nov 19 2016, 06:48:10)
- [GCC 5.4.0 20160609] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import psycopg2
- >>> f = open("postgres_key")
- >>> passwd = f.read().strip()
- >>> conn = psycopg2.connect("dbname=daskretreats_org user=dask password=%s" % passwd)
- >>> conn.dsn
- 'password=xxx user=dask dbname=daskretreats_org'
- root@dask:/home/dask/www/code/daskretreats_org# cat settings.py
- from __future__ import absolute_import, unicode_literals
- import os
- from django import VERSION as DJANGO_VERSION
- from django.utils.translation import ugettext_lazy as _
- with open("/home/dask/www/secrets/server_key") as server_key_file:
- SECRET_KEY = server_key_file.read().strip()
- with open("/home/dask/www/secrets/rollbar_key") as rollbar_key_file:
- ROLLBAR_KEY = rollbar_key_file.read().strip()
- with open("/home/dask/www/secrets/postgres_key") as postgres_key_file:
- POSTGRES_KEY = postgres_key_file.read().strip()
- ######################
- # MEZZANINE SETTINGS #
- ######################
- # The following settings are already defined with default values in
- # the ``defaults.py`` module within each of Mezzanine's apps, but are
- # common enough to be put here, commented out, for conveniently
- # overriding. Please consult the settings documentation for a full list
- # of settings Mezzanine implements:
- # http://mezzanine.jupo.org/docs/configuration.html#default-settings
- # Controls the ordering and grouping of the admin menu.
- #
- # ADMIN_MENU_ORDER = (
- # ("Content", ("pages.Page", "blog.BlogPost",
- # "generic.ThreadedComment", (_("Media Library"), "media-library"),)),
- # ("Site", ("sites.Site", "redirects.Redirect", "conf.Setting")),
- # ("Users", ("auth.User", "auth.Group",)),
- # )
- # A three item sequence, each containing a sequence of template tags
- # used to render the admin dashboard.
- #
- # DASHBOARD_TAGS = (
- # ("blog_tags.quick_blog", "mezzanine_tags.app_list"),
- # ("comment_tags.recent_comments",),
- # ("mezzanine_tags.recent_actions",),
- # )
- # A sequence of templates used by the ``page_menu`` template tag. Each
- # item in the sequence is a three item sequence, containing a unique ID
- # for the template, a label for the template, and the template path.
- # These templates are then available for selection when editing which
- # menus a page should appear in. Note that if a menu template is used
- # that doesn't appear in this setting, all pages will appear in it.
- # PAGE_MENU_TEMPLATES = (
- # (1, _("Top navigation bar"), "pages/menus/dropdown.html"),
- # (2, _("Left-hand tree"), "pages/menus/tree.html"),
- # (3, _("Footer"), "pages/menus/footer.html"),
- # )
- # A sequence of fields that will be injected into Mezzanine's (or any
- # library's) models. Each item in the sequence is a four item sequence.
- # The first two items are the dotted path to the model and its field
- # name to be added, and the dotted path to the field class to use for
- # the field. The third and fourth items are a sequence of positional
- # args and a dictionary of keyword args, to use when creating the
- # field instance. When specifying the field class, the path
- # ``django.models.db.`` can be omitted for regular Django model fields.
- #
- # EXTRA_MODEL_FIELDS = (
- # (
- # # Dotted path to field.
- # "mezzanine.blog.models.BlogPost.image",
- # # Dotted path to field class.
- # "somelib.fields.ImageField",
- # # Positional args for field class.
- # (_("Image"),),
- # # Keyword args for field class.
- # {"blank": True, "upload_to": "blog"},
- # ),
- # # Example of adding a field to *all* of Mezzanine's content types:
- # (
- # "mezzanine.pages.models.Page.another_field",
- # "IntegerField", # 'django.db.models.' is implied if path is omitted.
- # (_("Another name"),),
- # {"blank": True, "default": 1},
- # ),
- # )
- # Setting to turn on featured images for blog posts. Defaults to False.
- #
- # BLOG_USE_FEATURED_IMAGE = True
- # If True, the django-modeltranslation will be added to the
- # INSTALLED_APPS setting.
- USE_MODELTRANSLATION = False
- ########################
- # MAIN DJANGO SETTINGS #
- ########################
- # Hosts/domain names that are valid for this site; required if DEBUG is False
- # See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
- ALLOWED_HOSTS = [
- "www.daskretreats.org",
- "www.daskretreats.com",
- ]
- # Local time zone for this installation. Choices can be found here:
- # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
- # although not all choices may be available on all operating systems.
- # On Unix systems, a value of None will cause Django to use the same
- # timezone as the operating system.
- # If running in a Windows environment this must be set to the same as your
- # system time zone.
- TIME_ZONE = 'America/Chicago'
- # If you set this to True, Django will use timezone-aware datetimes.
- USE_TZ = True
- # Language code for this installation. All choices can be found here:
- # http://www.i18nguy.com/unicode/language-identifiers.html
- LANGUAGE_CODE = "en"
- # Supported languages
- LANGUAGES = (
- ('en', _('English')),
- )
- # A boolean that turns on/off debug mode. When set to ``True``, stack traces
- # are displayed for error pages. Should always be set to ``False`` in
- # production. Best set to ``True`` in local_settings.py
- DEBUG = False
- # Whether a user's session cookie expires when the Web browser is closed.
- SESSION_EXPIRE_AT_BROWSER_CLOSE = True
- SITE_ID = 1
- # If you set this to False, Django will make some optimizations so as not
- # to load the internationalization machinery.
- USE_I18N = False
- AUTHENTICATION_BACKENDS = ("mezzanine.core.auth_backends.MezzanineBackend",)
- # The numeric mode to set newly-uploaded files to. The value should be
- # a mode you'd pass directly to os.chmod.
- FILE_UPLOAD_PERMISSIONS = 0o644
- #############
- # DATABASES #
- #############
- DATABASES = {
- "default": {
- # Add "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
- "ENGINE": "django.db.backends.postgresql_psycopg2",
- # DB name or path to database file if using sqlite3.
- "NAME": "daskretreats_org",
- # Not used with sqlite3.
- "USER": "dask",
- # Not used with sqlite3.
- "PASSWORD": POSTGRES_KEY,
- # Set to empty string for localhost. Not used with sqlite3.
- "HOST": "",
- # Set to empty string for default. Not used with sqlite3.
- "PORT": "",
- }
- }
- #########
- # PATHS #
- #########
- # Full filesystem path to the project.
- PROJECT_APP_PATH = os.path.dirname(os.path.abspath(__file__))
- PROJECT_APP = os.path.basename(PROJECT_APP_PATH)
- PROJECT_ROOT = BASE_DIR = os.path.dirname(PROJECT_APP_PATH)
- # Every cache key will get prefixed with this value - here we set it to
- # the name of the directory the project is in to try and use something
- # project specific.
- CACHE_MIDDLEWARE_KEY_PREFIX = PROJECT_APP
- # URL prefix for static files.
- # Example: "http://media.lawrence.com/static/"
- STATIC_URL = "/static/"
- # Absolute path to the directory static files should be collected to.
- # Don't put anything in this directory yourself; store your static files
- # in apps' "static/" subdirectories and in STATICFILES_DIRS.
- # Example: "/home/media/media.lawrence.com/static/"
- STATIC_ROOT = os.path.join("/home/dask/www/html/static")
- # URL that handles the media served from MEDIA_ROOT. Make sure to use a
- # trailing slash.
- # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
- MEDIA_URL = STATIC_URL + "/media/"
- # Absolute filesystem path to the directory that will hold user-uploaded files.
- # Example: "/home/media/media.lawrence.com/media/"
- MEDIA_ROOT = os.path.join("/home/dask/www/html/media")
- # Package/module name to import the root urlpatterns from for the project.
- ROOT_URLCONF = "%s.urls" % PROJECT_APP
- TEMPLATES = [
- {
- "BACKEND": "django.template.backends.django.DjangoTemplates",
- "DIRS": [
- os.path.join(PROJECT_ROOT, "templates")
- ],
- "APP_DIRS": True,
- "OPTIONS": {
- "context_processors": [
- "django.contrib.auth.context_processors.auth",
- "django.contrib.messages.context_processors.messages",
- "django.template.context_processors.debug",
- "django.template.context_processors.i18n",
- "django.template.context_processors.static",
- "django.template.context_processors.media",
- "django.template.context_processors.request",
- "django.template.context_processors.tz",
- "mezzanine.conf.context_processors.settings",
- "mezzanine.pages.context_processors.page",
- ],
- "builtins": [
- "mezzanine.template.loader_tags",
- ],
- },
- },
- ]
- if DJANGO_VERSION < (1, 9):
- del TEMPLATES[0]["OPTIONS"]["builtins"]
- ################
- # APPLICATIONS #
- ################
- INSTALLED_APPS = (
- "django.contrib.admin",
- "django.contrib.auth",
- "django.contrib.contenttypes",
- "django.contrib.redirects",
- "django.contrib.sessions",
- "django.contrib.sites",
- "django.contrib.sitemaps",
- "django.contrib.staticfiles",
- "mezzanine.boot",
- "mezzanine.conf",
- "mezzanine.core",
- "mezzanine.generic",
- "mezzanine.pages",
- "mezzanine.blog",
- "mezzanine.forms",
- "mezzanine.galleries",
- "mezzanine.twitter",
- # "mezzanine.accounts",
- # "mezzanine.mobile",
- )
- # List of middleware classes to use. Order is important; in the request phase,
- # these middleware classes will be applied in the order given, and in the
- # response phase the middleware will be applied in reverse order.
- MIDDLEWARE_CLASSES = (
- "mezzanine.core.middleware.UpdateCacheMiddleware",
- 'django.contrib.sessions.middleware.SessionMiddleware',
- # Uncomment if using internationalisation or localisation
- # 'django.middleware.locale.LocaleMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- "mezzanine.core.request.CurrentRequestMiddleware",
- "mezzanine.core.middleware.RedirectFallbackMiddleware",
- "mezzanine.core.middleware.TemplateForDeviceMiddleware",
- "mezzanine.core.middleware.TemplateForHostMiddleware",
- "mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware",
- "mezzanine.core.middleware.SitePermissionMiddleware",
- "mezzanine.pages.middleware.PageMiddleware",
- "mezzanine.core.middleware.FetchFromCacheMiddleware",
- )
- # Store these package names here as they may change in the future since
- # at the moment we are using custom forks of them.
- PACKAGE_NAME_FILEBROWSER = "filebrowser_safe"
- PACKAGE_NAME_GRAPPELLI = "grappelli_safe"
- #########################
- # OPTIONAL APPLICATIONS #
- #########################
- # These will be added to ``INSTALLED_APPS``, only if available.
- OPTIONAL_APPS = (
- "debug_toolbar",
- "django_extensions",
- "compressor",
- PACKAGE_NAME_FILEBROWSER,
- PACKAGE_NAME_GRAPPELLI,
- )
- ##################
- # LOCAL SETTINGS #
- ##################
- # Allow any settings to be defined in local_settings.py which should be
- # ignored in your version control system allowing for settings to be
- # defined per machine.
- # Instead of doing "from .local_settings import *", we use exec so that
- # local_settings has full access to everything defined in this module.
- # Also force into sys.modules so it's visible to Django's autoreload.
- #f = os.path.join(PROJECT_APP_PATH, "local_settings.py")
- #if os.path.exists(f):
- # import sys
- # import imp
- # module_name = "%s.local_settings" % PROJECT_APP
- # module = imp.new_module(module_name)
- # module.__file__ = f
- # sys.modules[module_name] = module
- # exec(open(f, "rb").read())
- ####################
- # DYNAMIC SETTINGS #
- ####################
- # set_dynamic_settings() will rewrite globals based on what has been
- # defined so far, in order to provide some better defaults where
- # applicable. We also allow this settings module to be imported
- # without Mezzanine installed, as the case may be when using the
- # fabfile, where setting the dynamic settings below isn't strictly
- # required.
- try:
- from mezzanine.utils.conf import set_dynamic_settings
- except ImportError:
- pass
- else:
- set_dynamic_settings(globals())
- root@dask:/home/dask/www/code/daskretreats_org# cat wsgi.py
- """
- WSGI config for daskretreats_org project.
- It exposes the WSGI callable as a module-level variable named ``application``.
- For more information on this file, see
- https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
- """
- import os
- from django.core.wsgi import get_wsgi_application
- from mezzanine.utils.conf import real_project_name
- os.environ.setdefault("DJANGO_SETTINGS_MODULE",
- "%s.settings" % real_project_name("daskretreats_org"))
- application = get_wsgi_application()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement