Commit c7c5f2dd authored by Dimitris Moraitis's avatar Dimitris Moraitis
Browse files

move UPDATE_INTERVAL to settings.py

parent 2b6019f0
......@@ -265,7 +265,7 @@ SYSTEM_EMAIL_ADDR="noreply@grnet.gr"
#
# WARNING, ACHTUNG, README, etc: DO NOT ENABLE THIS ON DEPLOYED VERSIONS!
#
BYPASS_AUTHENTICATION = False
BYPASS_AUTHENTICATION = True
#
# Network Configuration
......@@ -294,3 +294,4 @@ IMAGE_ICONS = ["redhat", "ubuntu", "debian", "windows", "gentoo", "archlinux",
"centos", "fedora", "freebsd", "netbsd", "openbsd", "slackware",
"suse"]
UPDATE_INTERVAL = 5000
......@@ -59,7 +59,7 @@ or implied, of GRNET S.A.
// timeout value from settings.py
var TIMEOUT = {{timeout}};
var UPDATE_INTERVAL = {{5000}};
var UPDATE_INTERVAL = {{update_interval}};
var STATUSES = {
'UNKNOWN' : '{% trans "Unknown" %}',
'BUILD' : '{% trans "Building" %}',
......
......@@ -41,6 +41,7 @@ from django.utils import simplejson as json
from django.shortcuts import render_to_response
TIMEOUT = settings.TIMEOUT
UPDATE_INTERVAL = settings.UPDATE_INTERVAL
IMAGE_ICONS = settings.IMAGE_ICONS
def template(name, context):
......@@ -54,6 +55,7 @@ def home(request):
'project': '+nefo',
'request': request,
'current_lang': get_language() or 'en',
'update_interval': UPDATE_INTERVAL,
'image_icons': IMAGE_ICONS,}
return template('home', context)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment