--- /dev/null
+import string
+import random
+
+def generate_installation_key():
+ gen = lambda length: "".join( [random.choice(string.digits+string.letters) for i in xrange(length)])
+ return '%s-%s-%s-%s' % (gen(4), gen(4), gen(4), gen(4))
\ No newline at end of file
--- /dev/null
+from forum.settings.base import Setting, SettingSet
+from django.utils.translation import ugettext_lazy as _
+
+from base import generate_installation_key
+
+UPDATER_SET = SettingSet('updater', _('Updater Settings'), _("OSQA Update Checker Settings."), 100)
+
+CHECK_FOR_UPDATES = Setting('CHECK_FOR_UPDATES', True, UPDATER_SET, dict(
+label = "Check for updates",
+help_text = _("""
+Use the OSQA update server recieve notifications about the latest updates.
+"""),
+required=False))
+
+SITE_KEY = Setting('SITE_KEY', generate_installation_key())
+
+# Update server. Do not edit.
+UPDATE_SERVER_URL = 'http://192.168.0.102:8008'
\ No newline at end of file
+from django.conf.urls.defaults import *
+from django.views.generic.simple import direct_to_template
+from django.utils.translation import ugettext as _
+
+from views import updater_index
+
+urlpatterns = patterns('',
+ url(r'^%s%s$' % (_('admin/'), _('updater/')), updater_index, name='updater_index'),
+)
+from django.http import HttpResponse
+from base import generate_installation_key
+from settings import SITE_KEY
+
+def updater_index(request):
+ return HttpResponse(str(SITE_KEY))