]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/updater/views.py
activating the updater
[osqa.git] / forum_modules / updater / views.py
1 from django.http import HttpResponse
2 from django.utils.translation import ugettext as _
3
4 from base import check_for_updates
5
6 from forum.views.admin import admin_tools_page, admin_page
7
8 @admin_tools_page(_('updater'), _('Update Checker'))
9 def updater_index(request):
10     return (
11         'modules/updater/index.html',
12         {
13
14         },
15     )
16
17 def updater_check(request):
18     update_status = check_for_updates()
19
20     return HttpResponse(update_status, mimetype='text/html')