|
@@ -4,7 +4,7 @@ from django.contrib.auth import logout
|
|
|
from django.template import RequestContext, loader
|
|
from django.template import RequestContext, loader
|
|
|
from django.contrib.auth import authenticate, login
|
|
from django.contrib.auth import authenticate, login
|
|
|
from django.http import HttpResponse, HttpResponseRedirect
|
|
from django.http import HttpResponse, HttpResponseRedirect
|
|
|
-
|
|
|
|
|
|
|
+from scripts.SteamAPI import *
|
|
|
def index(request):
|
|
def index(request):
|
|
|
context = {'hello': 'world'}
|
|
context = {'hello': 'world'}
|
|
|
return render(request, 'hackathon/index.html', context)
|
|
return render(request, 'hackathon/index.html', context)
|
|
@@ -104,3 +104,12 @@ def user_logout(request):
|
|
|
|
|
|
|
|
# Take the user back to the homepage.
|
|
# Take the user back to the homepage.
|
|
|
return HttpResponseRedirect('/hackathon/')
|
|
return HttpResponseRedirect('/hackathon/')
|
|
|
|
|
+
|
|
|
|
|
+def SteamAPI(request):
|
|
|
|
|
+ #Should link to test of Steam API example.
|
|
|
|
|
+ key = '231E98D442E52B87110816C3D5114A1D'
|
|
|
|
|
+ SteamUN = "Marorin"
|
|
|
|
|
+ steamID = steamIDpulling(SteamUN, key)
|
|
|
|
|
+ game = gamespulling(steamID, key)
|
|
|
|
|
+ return render(request,'hackathon/SteamAPI.html',{"game": game})
|
|
|
|
|
+
|