Revision abf90954 ui/views.py

b/ui/views.py
1 1
import os
2
from django.conf import settings
2 3
from django.utils.translation import gettext_lazy as _
3 4
from django.template import Context, loader
4 5
from django.http import HttpResponse
5 6
from django.utils.translation import get_language
6 7

  
8
TIMEOUT = settings.TIMEOUT
7 9

  
8 10
def template(name, context):
9 11
    template_path = os.path.join(os.path.dirname(__file__), "templates/")  
......
16 18
    return template('home', context)
17 19

  
18 20
def machines(request):
19
    context = {}
21
    context = {'timeout': TIMEOUT}
20 22
    return template('machines', context)
21 23
   
22 24
def machines_list(request):

Also available in: Unified diff