Commit 88fd0c53 authored by jayaprakash-a's avatar jayaprakash-a

Final testing done

parent 7a8a3ed1
......@@ -27,7 +27,7 @@ SECRET_KEY = 'd$pxg6fisc4iwzk&vz^s_d0lkf&k63l5a8f!obktw!jg#4zvp3'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['192.168.43.79','127.0.0.1']
ALLOWED_HOSTS = ['192.168.43.79','127.0.0.1', 'localhost']
ACCOUNT_USERNAME_REQUIRED = False
AUTH_USER_MODEL = 'project.User'
......
No preview for this file type
......@@ -36,7 +36,7 @@ div {
<div id="player-name" style=" display: inline-block" >{{ player_name }}</div>
<br/><br/>
player profile: &nbsp
Player profile: &nbsp
<div id="profile" style=" display: inline-block">{{ player_profile }}</div>
<br/><br/>
Highest Bidder: &nbsp
......
......@@ -82,8 +82,14 @@ def load_page(request):
if request.user.is_player:
return render(request, 'templates/404.html', {})
try:
player_details = AuctionUpdate.objects.filter(is_sold=False)[0]
except Exception as e:
context = {
'auction_finished': 'True'
}
return JsonResponse(context)
# player_details = AuctionUpdate.objects.filter(is_sold=False)[0]
# update_timer()
logger.debug('load_page', player_details)
# thread = threading.Thread(target = sell_player)
......
......@@ -39,8 +39,14 @@ def auction(request):
request: The request object
"""
player_details = None
try:
player_details = AuctionUpdate.objects.filter(is_sold=False)[0]
except Exception as e:
context = {
'auction_finished': 'True'
}
return JsonResponse(context)
manager_name = request.user.username
manager_list = TeamManager.objects.all()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment