Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings object has no attribute "DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP" #4113

Closed
mrpau-richard opened this issue Jul 17, 2015 · 2 comments
Closed
Assignees

Comments

@mrpau-richard
Copy link
Contributor

Branch: 0.14.x
Current behavior: Can't load videos tab to because of this error Settings object has no attribute DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP

Steps to reproduce:

  1. Log in as admin user
  2. Navigate to videos tab.

screen shot 2015-07-17 at 10 06 50 am

@cpauya
Copy link
Contributor

cpauya commented Jul 17, 2015

@amodia Here's my quick patch, so all references to settings.DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP will have a default value of False.

diff --git a/kalite/settings/__init__.py b/kalite/settings/__init__.py
index 718962a..c9db9eb 100644
--- a/kalite/settings/__init__.py
+++ b/kalite/settings/__init__.py
@@ -46,6 +46,8 @@ if CONFIG_PACKAGE:
         RemovedInKALite_v015_Warning
     )

+DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP = getattr(local_settings, "DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP", False)
+
 # Config for Raspberry Pi distributed server
 if package_selected("RPi"):

@rtibbles
Copy link
Member

Fixed in #4116

@rtibbles rtibbles removed the has PR label Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants