idk what happened but this is the static files eureka moment commit
This commit is contained in:
10
website/home/views.py
Normal file
10
website/home/views.py
Normal 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)
|
Reference in New Issue
Block a user