Registering settings problem when using Mezzanine with Cacheops

47 views
Skip to first unread message

irrelevance

unread,
May 18, 2013, 4:26:00 PM5/18/13
to mezzani...@googlegroups.com
Hello!
Im using Cacheops for caching on my site, that built with Mezzanine. 
And Im getting strange error - when "cacheops" is added in INSTALLED_APPS Mezzanine is not registering its additional settings. I traced it and found that in mezzanine.conf.__init__ at line 108 (where 'defaults' importing from apps) happens exception (ImportError: cannot import name settings). And obviously after that mezzanine applications cannot find needed settings and failing.

When I commenting "cacheops" in INSTALLED_APPS - everything works fine.
Interesting also, that when I manually executing import code from line 108 of mezzanine.conf.__init__ through PyCharm "evaluate code" during debugging, it not throwing exception, and importing all in registry as usual!

Thats how my INSTALLED_APPS look:
INSTALLED_APPS = (
    "mezzanine.boot",
    "django_pickling",
    "cacheops",
    "mezzanine.conf",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.redirects",
    "django.contrib.sessions",
    "django.contrib.sites",
    "django.contrib.sitemaps",
    "django.contrib.staticfiles",
    "cartridge.shop",
    "mezzanine.core",
    "mezzanine.generic",
    "mezzanine.blog",
    "mezzanine.forms",
    "mezzanine.pages",
    "mezzanine.accounts",
   ...

Stephen, Josh, could you take a look on it, or provide any guess about what can cause this mysterious error? 

irrelevance

unread,
May 19, 2013, 7:14:16 AM5/19/13
to mezzani...@googlegroups.com
In addition: when "cacheops" is added to INSTALLED_APPS - devserver not starting because of missing additional settings (like 'TINYMCE_SETUP_JS')
Reply all
Reply to author
Forward
0 new messages