from django.shortcuts import render

def start(request):
    return render(request, "quest/index.html")

# from django.views.generic import View
# from django.http import HttpResponse
# from django.conf import settings
# import os
#
# class ReactAppView(View):
#
#     def get(self, request):
#         try:
#
#             with open(os.path.join(settings.REACT_APP, 'start', "D:/Work/Quiz/templates/start/index.html")) as file:
#                 return HttpResponse(file.read())
#
#         except :
#             return HttpResponse(
#                 """
#                 index.html not found ! build your React app !!
#                 """,
#                 status=501,
#             )
