Created
March 6, 2015 07:12
-
-
Save peterfarrell/fc3a5853d8b109041b83 to your computer and use it in GitHub Desktop.
django-cms urls.py error on Django 1.7.4 with Postgres when CMS has app_hooks.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00:50:04.391 2015-03-06 06:50:04.020323+00:00 app web.1 - - Traceback (most recent call last): | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 168, in __call__ | |
self.load_middleware() | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 46, in load_middleware | |
mw_instance = mw_class() | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/middleware/locale.py", line 23, in __init__ | |
for url_pattern in get_resolver(None).url_patterns: | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/urlresolvers.py", line 372, in url_patterns | |
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/urlresolvers.py", line 366, in urlconf_module | |
self._urlconf_module = import_module(self.urlconf_name) | |
File "/app/.heroku/python/lib/python2.7/importlib/__init__.py", line 37, in import_module | |
__import__(name) | |
File "./verde/urls.py", line 22, in <module> | |
(r'^verdeadmin/', include(admin.site.urls)), | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 262, in urls | |
return self.get_urls(), self.app_name, self.name | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 246, in get_urls | |
url(r'^%s/%s/' % (model._meta.app_label, model._meta.model_name), include(model_admin.urls)) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/admin/options.py", line 598, in urls | |
return self.get_urls() | |
File "/app/.heroku/python/lib/python2.7/site-packages/cms/admin/pageadmin.py", line 145, in get_urls | |
url_patterns += super(PageAdmin, self).get_urls() | |
File "/app/.heroku/python/lib/python2.7/site-packages/cms/admin/placeholderadmin.py", line 131, in get_urls | |
from cms.urls import SLUG_REGEXP | |
File "/app/.heroku/python/lib/python2.7/site-packages/cms/urls.py", line 20, in <module> | |
urlpatterns = get_app_patterns() | |
File "/app/.heroku/python/lib/python2.7/site-packages/cms/appresolver.py", line 191, in get_app_patterns | |
current_site = Site.objects.get_current() | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/sites/models.py", line 54, in get_current | |
current_site = self.get(pk=sid) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/manager.py", line 92, in manager_method | |
return getattr(self.get_queryset(), name)(*args, **kwargs) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/query.py", line 351, in get | |
num = len(clone) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/query.py", line 122, in __len__ | |
self._fetch_all() | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/query.py", line 966, in _fetch_all | |
self._result_cache = list(self.iterator()) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/query.py", line 265, in iterator | |
for row in compiler.results_iter(): | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 700, in results_iter | |
for rows in self.execute_sql(MULTI): | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 786, in execute_sql | |
cursor.execute(sql, params) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute | |
return self.cursor.execute(sql, params) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__ | |
six.reraise(dj_exc_type, dj_exc_value, traceback) | |
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute | |
return self.cursor.execute(sql, params) | |
django.db.utils.OperationalError: SSL SYSCALL error: EOF detected Exception |
Looks like this issue is fixed in https://code.djangoproject.com/ticket/24360 which looks like it will make it in django 1.7.6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tracked it down to the Locale Middleware being enabled and it will be fixed in django 1.7.6: https://code.djangoproject.com/ticket/24360