from django.http import HttpResponse
from django.shortcuts import render


# Create your views here.

#This is the First Page's view.
def index(request):
    return HttpResponse("Gym Manager System")
from django.http import HttpResponse
from django.shortcuts import render


# Create your views here.

#This is the First Page's view.
def index(request):
	# Construct a dictionary to pass to the template engine as its context.
    # Note the key boldmessage is the same as {{ boldmessage }} in the template!
    context_dict = {'boldmessage': "Excuse us, programmers working :)"}

    # Return a rendered response to send to the client.
    # We make use of the shortcut function to make our lives easier.
    # Note that the first parameter is the template we wish to use.

    return render(request, 'gym_app/index.html', context_dict)
Update index() function