Hi, I'm trying to create an excel file in a scheduled task. Before I did this in views.py, where I created the workbook as follows. Then it would save in the same 'myapp' folder as where views.py was located.
workbook = xlsxwriter.Workbook('myapp/filename'+task.id+'.xlsx')
worksheet = workbook.add_worksheet()
How should I define the path in a scheduled task if I want to save an excel file in a folder? Such that I can also use the task.id field from my model?
Thanks in advance! Regards, Evelien