pandora/oxdb/app/views.py

15 lines
516 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404
from django.template import RequestContext
2009-10-04 23:48:18 +00:00
from django.conf import settings
def index(request):
2010-02-08 10:26:25 +00:00
context = RequestContext(request, {'settings':settings})
return render_to_response('index.html', context)
2010-02-08 10:26:25 +00:00
def site_js(request):
context = RequestContext(request, {'settings':settings})
return render_to_response('site.js', context, mimetype="application/javascript")