idk what happened but this is the static files eureka moment commit

This commit is contained in:
Yamozha
2021-02-08 23:30:16 +02:00
parent c43acaf71f
commit cbcda35161
8 changed files with 123 additions and 0 deletions

10
website/home/views.py Normal file
View File

@ -0,0 +1,10 @@
from django.shortcuts import render
import os.path
def homePage(request):
currencyTotal = open(os.path.dirname(__file__) + "/../currency.txt","r")
currencyTotal = currencyTotal.readline()
context = {
"currencyTotal" : currencyTotal
}
return render(request, "home.html", context)