I have this function in a file, (calendarfunction.py) which I want to 'call' from the main app file (flask_app.py) and then use the calender for the main route ie:madmartin.pythonanywhere.com/
here's the code:
def calendar_today():
now = datetime.datetime.now()
c = calendar.TextCalendar(calendar.SUNDAY)
month = c.formatmonth(now.year, now.month)
print(month)
calendar_today()
so how to call from within flask_app.py?