Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
c7c5f2dd
Commit
c7c5f2dd
authored
Jun 17, 2011
by
Dimitris Moraitis
Browse files
move UPDATE_INTERVAL to settings.py
parent
2b6019f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
settings.py.dist
View file @
c7c5f2dd
...
...
@@ -265,7 +265,7 @@ SYSTEM_EMAIL_ADDR="noreply@grnet.gr"
#
# WARNING, ACHTUNG, README, etc: DO NOT ENABLE THIS ON DEPLOYED VERSIONS!
#
BYPASS_AUTHENTICATION =
Fals
e
BYPASS_AUTHENTICATION =
Tru
e
#
# Network Configuration
...
...
@@ -294,3 +294,4 @@ IMAGE_ICONS = ["redhat", "ubuntu", "debian", "windows", "gentoo", "archlinux",
"centos", "fedora", "freebsd", "netbsd", "openbsd", "slackware",
"suse"]
UPDATE_INTERVAL = 5000
ui/templates/home.html
View file @
c7c5f2dd
...
...
@@ -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" %}
'
,
...
...
ui/views.py
View file @
c7c5f2dd
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment