Skip to content

Commit

Permalink
Merge pull request learningequality#4123 from benjaoming/remove-rpi-w…
Browse files Browse the repository at this point in the history
…arning

Remove warning about RPi specific issue since it's no longer default
  • Loading branch information
benjaoming committed Jul 20, 2015
2 parents 69776be + a274236 commit bb0135d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion kalite/project/settings/raspberry_pi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@

ENABLE_CLOCK_SET = True

DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP = True
DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP = True

USING_RASPBERRY_PI = True
1 change: 1 addition & 0 deletions kalite/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def package_selected(package_name):
ENABLE_CLOCK_SET = getattr(local_settings, "ENABLE_CLOCK_SET", True)

DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP = True
USING_RASPBERRY_PI = True


if package_selected("nalanda"):
Expand Down
4 changes: 3 additions & 1 deletion kalite/updates/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def update_context(request):
@render_to("updates/update_videos.html")
def update_videos(request, max_to_show=4):
context = update_context(request)
messages.warning(request, _('For low-powered devices like the Raspberry Pi, please download less than 25 videos at a time.'))
if getattr(settings, 'USING_RASPBERRY_PI', False):
messages.warning(request, _('For low-powered devices like the Raspberry Pi, please download less than 25 videos at a time.'))

if DO_NOT_RELOAD_CONTENT_CACHE_AT_STARTUP:
messages.warning(request, _('After video download, the server must be restarted for them to be available to users.'))
context.update({
Expand Down

0 comments on commit bb0135d

Please sign in to comment.