50 lines
1.1 KiB
Python
50 lines
1.1 KiB
Python
from django.shortcuts import render_to_response
|
|
from django.http import HttpResponse
|
|
from django.contrib import admin
|
|
from settings import LANGUAGES
|
|
import simplejson
|
|
import sys
|
|
|
|
def index(request):
|
|
return HttpResponse("India Theatre Forum - Coming Soon")
|
|
|
|
def getLanguages(request):
|
|
languages = LANGUAGES
|
|
langArr = []
|
|
for l in languages:
|
|
langDict = {}
|
|
langDict['short'] = l[0]
|
|
langDict['long'] = l[1]
|
|
langArr.append(langDict)
|
|
|
|
print langArr
|
|
json = simplejson.dumps(langArr)
|
|
return HttpResponse(json, mimetype='application/javascript')
|
|
|
|
def mockup(request):
|
|
return render_to_response("mockup.html")
|
|
|
|
def allnews(request):
|
|
return render_to_response("x0news.html")
|
|
|
|
def disc(request):
|
|
return render_to_response("x0disc.html")
|
|
|
|
def multi(request):
|
|
return render_to_response("x0multi.html")
|
|
|
|
def resources(request):
|
|
return render_to_response("x0resources.html")
|
|
|
|
def erang(request):
|
|
return render_to_response("x0erang.html")
|
|
|
|
def profile(request):
|
|
return render_to_response("x0profile.html")
|
|
|
|
def googlehosted(request):
|
|
return HttpResponse('googlefffffffffc014cb4')
|
|
|
|
# Create your views here.
|
|
|