1
0
mirror of https://github.com/bspeice/Melodia synced 2026-06-11 15:51:46 -04:00

Commit the login page

Contains some fixes, etc. in order to make the login page work.
This commit is contained in:
Bradlee Speice
2013-01-24 19:04:29 -05:00
parent e3e6a6e475
commit c5fec8cfd3
14 changed files with 132 additions and 44 deletions
+15
View File
@@ -0,0 +1,15 @@
#Utilities file for the web client
from django.utils import simplejson
from django.http import HttpResponse
def json_response(**kwargs):
#This is used to make sure that we have a standard json response
response = []
for key, value in kwargs.iteritems():
response[key] = value
#After including anything specified in our arguments, make sure that we have a "success" parameter
if not "success" in response:
response["success"] = True
return HttpResponse(simplejson.dumps(response))