Advertisement
Guest User

Untitled

a guest
Aug 29th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.46 KB | None | 0 0
  1. [Tue Aug 29 06:25:02.814327 2017] [wsgi:warn] [pid 13936:tid 140412830447488] mod_wsgi: Compiled for Python/2.7.11.
  2. [Tue Aug 29 06:25:02.814361 2017] [wsgi:warn] [pid 13936:tid 140412830447488] mod_wsgi: Runtime using Python/2.7.12.
  3. [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
  4. [Tue Aug 29 06:25:02.815802 2017] [core:notice] [pid 13936:tid 140412830447488] AH00094: Command line: '/usr/sbin/apache2'
  5. [Wed Aug 30 01:06:17.675591 2017] [mpm_event:notice] [pid 13936:tid 140412830447488] AH00491: caught SIGTERM, shutting down
  6. [Wed Aug 30 01:06:59.534323 2017] [wsgi:warn] [pid 3540:tid 139886587135872] mod_wsgi: Compiled for Python/2.7.11.
  7. [Wed Aug 30 01:06:59.534766 2017] [wsgi:warn] [pid 3540:tid 139886587135872] mod_wsgi: Runtime using Python/2.7.12.
  8. [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
  9. [Wed Aug 30 01:06:59.536070 2017] [core:notice] [pid 3540:tid 139886587135872] AH00094: Command line: '/usr/sbin/apache2'
  10. [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
  11. [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'.
  12. [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):
  13. [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__
  14. [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)
  15. [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
  16. [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)
  17. [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
  18. [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)
  19. [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
  20. [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())
  21. [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
  22. [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)
  23. [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
  24. [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)
  25. [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
  26. [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))
  27. [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
  28. [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)
  29. [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
  30. [Tue Aug 29 20:08:45.616554 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self._render(context)
  31. [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
  32. [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)
  33. [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
  34. [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)
  35. [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
  36. [Tue Aug 29 20:08:45.616671 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.render(context)
  37. [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
  38. [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
  39. [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)
  40. [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
  41. [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)
  42. [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
  43. [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)
  44. [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
  45. [Tue Aug 29 20:08:45.617118 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.render(context)
  46. [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
  47. [Tue Aug 29 20:08:45.618332 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] match = condition.eval(context)
  48. [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
  49. [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)
  50. [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
  51. [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)
  52. [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
  53. [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)
  54. [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
  55. [Tue Aug 29 20:08:45.618502 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] current = current[bit]
  56. [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__
  57. [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)
  58. [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__
  59. [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)
  60. [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
  61. [Tue Aug 29 20:08:45.619465 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] editable_settings = self._load()
  62. [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
  63. [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():
  64. [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
  65. [Tue Aug 29 20:08:45.619577 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] return self.get_queryset()
  66. [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
  67. [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()}
  68. [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
  69. [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)
  70. [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
  71. [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)
  72. [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
  73. [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()
  74. [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
  75. [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()
  76. [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
  77. [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)
  78. [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
  79. [Tue Aug 29 20:08:45.621733 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] num = len(clone)
  80. [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__
  81. [Tue Aug 29 20:08:45.621768 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self._fetch_all()
  82. [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
  83. [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())
  84. [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__
  85. [Tue Aug 29 20:08:45.621825 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] results = compiler.execute_sql()
  86. [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
  87. [Tue Aug 29 20:08:45.622114 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] cursor = self.connection.cursor()
  88. [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
  89. [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())
  90. [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
  91. [Tue Aug 29 20:08:45.622353 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.ensure_connection()
  92. [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
  93. [Tue Aug 29 20:08:45.622413 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connect()
  94. [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__
  95. [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)
  96. [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
  97. [Tue Aug 29 20:08:45.622529 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connect()
  98. [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
  99. [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)
  100. [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
  101. [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)
  102. [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
  103. [Tue Aug 29 20:08:45.621733 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] num = len(clone)
  104. [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__
  105. [Tue Aug 29 20:08:45.621768 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self._fetch_all()
  106. [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
  107. [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())
  108. [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__
  109. [Tue Aug 29 20:08:45.621825 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] results = compiler.execute_sql()
  110. [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
  111. [Tue Aug 29 20:08:45.622114 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] cursor = self.connection.cursor()
  112. [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
  113. [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())
  114. [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
  115. [Tue Aug 29 20:08:45.622353 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.ensure_connection()
  116. [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
  117. [Tue Aug 29 20:08:45.622413 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connect()
  118. [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__
  119. [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)
  120. [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
  121. [Tue Aug 29 20:08:45.622529 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044] self.connect()
  122. [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
  123. [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)
  124. [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
  125. [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)
  126. [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
  127. [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)
  128. [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"
  129. [Tue Aug 29 20:08:45.622802 2017] [wsgi:error] [pid 3548:tid 139886445426432] [remote 107.204.45.82:25044]
  130.  
  131. (venv) dask@dask:~/www/secrets$ python
  132. Python 2.7.12 (default, Nov 19 2016, 06:48:10)
  133. [GCC 5.4.0 20160609] on linux2
  134. Type "help", "copyright", "credits" or "license" for more information.
  135. >>> import psycopg2
  136. >>> f = open("postgres_key")
  137. >>> passwd = f.read().strip()
  138. >>> conn = psycopg2.connect("dbname=daskretreats_org user=dask password=%s" % passwd)
  139. >>> conn.dsn
  140. 'password=xxx user=dask dbname=daskretreats_org'
  141.  
  142. root@dask:/home/dask/www/code/daskretreats_org# cat settings.py
  143.  
  144. from __future__ import absolute_import, unicode_literals
  145. import os
  146.  
  147. from django import VERSION as DJANGO_VERSION
  148. from django.utils.translation import ugettext_lazy as _
  149.  
  150. with open("/home/dask/www/secrets/server_key") as server_key_file:
  151. SECRET_KEY = server_key_file.read().strip()
  152. with open("/home/dask/www/secrets/rollbar_key") as rollbar_key_file:
  153. ROLLBAR_KEY = rollbar_key_file.read().strip()
  154. with open("/home/dask/www/secrets/postgres_key") as postgres_key_file:
  155. POSTGRES_KEY = postgres_key_file.read().strip()
  156.  
  157. ######################
  158. # MEZZANINE SETTINGS #
  159. ######################
  160.  
  161. # The following settings are already defined with default values in
  162. # the ``defaults.py`` module within each of Mezzanine's apps, but are
  163. # common enough to be put here, commented out, for conveniently
  164. # overriding. Please consult the settings documentation for a full list
  165. # of settings Mezzanine implements:
  166. # http://mezzanine.jupo.org/docs/configuration.html#default-settings
  167.  
  168. # Controls the ordering and grouping of the admin menu.
  169. #
  170. # ADMIN_MENU_ORDER = (
  171. # ("Content", ("pages.Page", "blog.BlogPost",
  172. # "generic.ThreadedComment", (_("Media Library"), "media-library"),)),
  173. # ("Site", ("sites.Site", "redirects.Redirect", "conf.Setting")),
  174. # ("Users", ("auth.User", "auth.Group",)),
  175. # )
  176.  
  177. # A three item sequence, each containing a sequence of template tags
  178. # used to render the admin dashboard.
  179. #
  180. # DASHBOARD_TAGS = (
  181. # ("blog_tags.quick_blog", "mezzanine_tags.app_list"),
  182. # ("comment_tags.recent_comments",),
  183. # ("mezzanine_tags.recent_actions",),
  184. # )
  185.  
  186. # A sequence of templates used by the ``page_menu`` template tag. Each
  187. # item in the sequence is a three item sequence, containing a unique ID
  188. # for the template, a label for the template, and the template path.
  189. # These templates are then available for selection when editing which
  190. # menus a page should appear in. Note that if a menu template is used
  191. # that doesn't appear in this setting, all pages will appear in it.
  192.  
  193. # PAGE_MENU_TEMPLATES = (
  194. # (1, _("Top navigation bar"), "pages/menus/dropdown.html"),
  195. # (2, _("Left-hand tree"), "pages/menus/tree.html"),
  196. # (3, _("Footer"), "pages/menus/footer.html"),
  197. # )
  198.  
  199. # A sequence of fields that will be injected into Mezzanine's (or any
  200. # library's) models. Each item in the sequence is a four item sequence.
  201. # The first two items are the dotted path to the model and its field
  202. # name to be added, and the dotted path to the field class to use for
  203. # the field. The third and fourth items are a sequence of positional
  204. # args and a dictionary of keyword args, to use when creating the
  205. # field instance. When specifying the field class, the path
  206. # ``django.models.db.`` can be omitted for regular Django model fields.
  207. #
  208. # EXTRA_MODEL_FIELDS = (
  209. # (
  210. # # Dotted path to field.
  211. # "mezzanine.blog.models.BlogPost.image",
  212. # # Dotted path to field class.
  213. # "somelib.fields.ImageField",
  214. # # Positional args for field class.
  215. # (_("Image"),),
  216. # # Keyword args for field class.
  217. # {"blank": True, "upload_to": "blog"},
  218. # ),
  219. # # Example of adding a field to *all* of Mezzanine's content types:
  220. # (
  221. # "mezzanine.pages.models.Page.another_field",
  222. # "IntegerField", # 'django.db.models.' is implied if path is omitted.
  223. # (_("Another name"),),
  224. # {"blank": True, "default": 1},
  225. # ),
  226. # )
  227.  
  228. # Setting to turn on featured images for blog posts. Defaults to False.
  229. #
  230. # BLOG_USE_FEATURED_IMAGE = True
  231.  
  232. # If True, the django-modeltranslation will be added to the
  233. # INSTALLED_APPS setting.
  234. USE_MODELTRANSLATION = False
  235.  
  236.  
  237. ########################
  238. # MAIN DJANGO SETTINGS #
  239. ########################
  240.  
  241. # Hosts/domain names that are valid for this site; required if DEBUG is False
  242. # See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
  243. ALLOWED_HOSTS = [
  244. "www.daskretreats.org",
  245. "www.daskretreats.com",
  246. ]
  247.  
  248. # Local time zone for this installation. Choices can be found here:
  249. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  250. # although not all choices may be available on all operating systems.
  251. # On Unix systems, a value of None will cause Django to use the same
  252. # timezone as the operating system.
  253. # If running in a Windows environment this must be set to the same as your
  254. # system time zone.
  255. TIME_ZONE = 'America/Chicago'
  256.  
  257. # If you set this to True, Django will use timezone-aware datetimes.
  258. USE_TZ = True
  259.  
  260. # Language code for this installation. All choices can be found here:
  261. # http://www.i18nguy.com/unicode/language-identifiers.html
  262. LANGUAGE_CODE = "en"
  263.  
  264. # Supported languages
  265. LANGUAGES = (
  266. ('en', _('English')),
  267. )
  268.  
  269. # A boolean that turns on/off debug mode. When set to ``True``, stack traces
  270. # are displayed for error pages. Should always be set to ``False`` in
  271. # production. Best set to ``True`` in local_settings.py
  272. DEBUG = False
  273.  
  274. # Whether a user's session cookie expires when the Web browser is closed.
  275. SESSION_EXPIRE_AT_BROWSER_CLOSE = True
  276.  
  277. SITE_ID = 1
  278.  
  279. # If you set this to False, Django will make some optimizations so as not
  280. # to load the internationalization machinery.
  281. USE_I18N = False
  282.  
  283. AUTHENTICATION_BACKENDS = ("mezzanine.core.auth_backends.MezzanineBackend",)
  284.  
  285. # The numeric mode to set newly-uploaded files to. The value should be
  286. # a mode you'd pass directly to os.chmod.
  287. FILE_UPLOAD_PERMISSIONS = 0o644
  288.  
  289.  
  290. #############
  291. # DATABASES #
  292. #############
  293.  
  294. DATABASES = {
  295. "default": {
  296. # Add "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
  297. "ENGINE": "django.db.backends.postgresql_psycopg2",
  298. # DB name or path to database file if using sqlite3.
  299. "NAME": "daskretreats_org",
  300. # Not used with sqlite3.
  301. "USER": "dask",
  302. # Not used with sqlite3.
  303. "PASSWORD": POSTGRES_KEY,
  304. # Set to empty string for localhost. Not used with sqlite3.
  305. "HOST": "",
  306. # Set to empty string for default. Not used with sqlite3.
  307. "PORT": "",
  308. }
  309. }
  310.  
  311.  
  312. #########
  313. # PATHS #
  314. #########
  315.  
  316. # Full filesystem path to the project.
  317. PROJECT_APP_PATH = os.path.dirname(os.path.abspath(__file__))
  318. PROJECT_APP = os.path.basename(PROJECT_APP_PATH)
  319. PROJECT_ROOT = BASE_DIR = os.path.dirname(PROJECT_APP_PATH)
  320.  
  321. # Every cache key will get prefixed with this value - here we set it to
  322. # the name of the directory the project is in to try and use something
  323. # project specific.
  324. CACHE_MIDDLEWARE_KEY_PREFIX = PROJECT_APP
  325.  
  326. # URL prefix for static files.
  327. # Example: "http://media.lawrence.com/static/"
  328. STATIC_URL = "/static/"
  329.  
  330. # Absolute path to the directory static files should be collected to.
  331. # Don't put anything in this directory yourself; store your static files
  332. # in apps' "static/" subdirectories and in STATICFILES_DIRS.
  333. # Example: "/home/media/media.lawrence.com/static/"
  334. STATIC_ROOT = os.path.join("/home/dask/www/html/static")
  335.  
  336. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  337. # trailing slash.
  338. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
  339. MEDIA_URL = STATIC_URL + "/media/"
  340.  
  341. # Absolute filesystem path to the directory that will hold user-uploaded files.
  342. # Example: "/home/media/media.lawrence.com/media/"
  343. MEDIA_ROOT = os.path.join("/home/dask/www/html/media")
  344.  
  345. # Package/module name to import the root urlpatterns from for the project.
  346. ROOT_URLCONF = "%s.urls" % PROJECT_APP
  347.  
  348. TEMPLATES = [
  349. {
  350. "BACKEND": "django.template.backends.django.DjangoTemplates",
  351. "DIRS": [
  352. os.path.join(PROJECT_ROOT, "templates")
  353. ],
  354. "APP_DIRS": True,
  355. "OPTIONS": {
  356. "context_processors": [
  357. "django.contrib.auth.context_processors.auth",
  358. "django.contrib.messages.context_processors.messages",
  359. "django.template.context_processors.debug",
  360. "django.template.context_processors.i18n",
  361. "django.template.context_processors.static",
  362. "django.template.context_processors.media",
  363. "django.template.context_processors.request",
  364. "django.template.context_processors.tz",
  365. "mezzanine.conf.context_processors.settings",
  366. "mezzanine.pages.context_processors.page",
  367. ],
  368. "builtins": [
  369. "mezzanine.template.loader_tags",
  370. ],
  371. },
  372. },
  373. ]
  374.  
  375. if DJANGO_VERSION < (1, 9):
  376. del TEMPLATES[0]["OPTIONS"]["builtins"]
  377.  
  378.  
  379. ################
  380. # APPLICATIONS #
  381. ################
  382.  
  383. INSTALLED_APPS = (
  384. "django.contrib.admin",
  385. "django.contrib.auth",
  386. "django.contrib.contenttypes",
  387. "django.contrib.redirects",
  388. "django.contrib.sessions",
  389. "django.contrib.sites",
  390. "django.contrib.sitemaps",
  391. "django.contrib.staticfiles",
  392. "mezzanine.boot",
  393. "mezzanine.conf",
  394. "mezzanine.core",
  395. "mezzanine.generic",
  396. "mezzanine.pages",
  397. "mezzanine.blog",
  398. "mezzanine.forms",
  399. "mezzanine.galleries",
  400. "mezzanine.twitter",
  401. # "mezzanine.accounts",
  402. # "mezzanine.mobile",
  403. )
  404.  
  405. # List of middleware classes to use. Order is important; in the request phase,
  406. # these middleware classes will be applied in the order given, and in the
  407. # response phase the middleware will be applied in reverse order.
  408. MIDDLEWARE_CLASSES = (
  409. "mezzanine.core.middleware.UpdateCacheMiddleware",
  410.  
  411. 'django.contrib.sessions.middleware.SessionMiddleware',
  412. # Uncomment if using internationalisation or localisation
  413. # 'django.middleware.locale.LocaleMiddleware',
  414. 'django.middleware.common.CommonMiddleware',
  415. 'django.middleware.csrf.CsrfViewMiddleware',
  416. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  417. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  418. 'django.contrib.messages.middleware.MessageMiddleware',
  419. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  420.  
  421. "mezzanine.core.request.CurrentRequestMiddleware",
  422. "mezzanine.core.middleware.RedirectFallbackMiddleware",
  423. "mezzanine.core.middleware.TemplateForDeviceMiddleware",
  424. "mezzanine.core.middleware.TemplateForHostMiddleware",
  425. "mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware",
  426. "mezzanine.core.middleware.SitePermissionMiddleware",
  427. "mezzanine.pages.middleware.PageMiddleware",
  428. "mezzanine.core.middleware.FetchFromCacheMiddleware",
  429. )
  430.  
  431. # Store these package names here as they may change in the future since
  432. # at the moment we are using custom forks of them.
  433. PACKAGE_NAME_FILEBROWSER = "filebrowser_safe"
  434. PACKAGE_NAME_GRAPPELLI = "grappelli_safe"
  435.  
  436. #########################
  437. # OPTIONAL APPLICATIONS #
  438. #########################
  439.  
  440. # These will be added to ``INSTALLED_APPS``, only if available.
  441. OPTIONAL_APPS = (
  442. "debug_toolbar",
  443. "django_extensions",
  444. "compressor",
  445. PACKAGE_NAME_FILEBROWSER,
  446. PACKAGE_NAME_GRAPPELLI,
  447. )
  448.  
  449. ##################
  450. # LOCAL SETTINGS #
  451. ##################
  452.  
  453. # Allow any settings to be defined in local_settings.py which should be
  454. # ignored in your version control system allowing for settings to be
  455. # defined per machine.
  456.  
  457. # Instead of doing "from .local_settings import *", we use exec so that
  458. # local_settings has full access to everything defined in this module.
  459. # Also force into sys.modules so it's visible to Django's autoreload.
  460.  
  461. #f = os.path.join(PROJECT_APP_PATH, "local_settings.py")
  462. #if os.path.exists(f):
  463. # import sys
  464. # import imp
  465. # module_name = "%s.local_settings" % PROJECT_APP
  466. # module = imp.new_module(module_name)
  467. # module.__file__ = f
  468. # sys.modules[module_name] = module
  469. # exec(open(f, "rb").read())
  470.  
  471.  
  472. ####################
  473. # DYNAMIC SETTINGS #
  474. ####################
  475.  
  476. # set_dynamic_settings() will rewrite globals based on what has been
  477. # defined so far, in order to provide some better defaults where
  478. # applicable. We also allow this settings module to be imported
  479. # without Mezzanine installed, as the case may be when using the
  480. # fabfile, where setting the dynamic settings below isn't strictly
  481. # required.
  482. try:
  483. from mezzanine.utils.conf import set_dynamic_settings
  484. except ImportError:
  485. pass
  486. else:
  487. set_dynamic_settings(globals())
  488.  
  489. root@dask:/home/dask/www/code/daskretreats_org# cat wsgi.py
  490. """
  491. WSGI config for daskretreats_org project.
  492.  
  493. It exposes the WSGI callable as a module-level variable named ``application``.
  494.  
  495. For more information on this file, see
  496. https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
  497. """
  498.  
  499. import os
  500.  
  501. from django.core.wsgi import get_wsgi_application
  502. from mezzanine.utils.conf import real_project_name
  503.  
  504. os.environ.setdefault("DJANGO_SETTINGS_MODULE",
  505. "%s.settings" % real_project_name("daskretreats_org"))
  506.  
  507. application = get_wsgi_application()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement