I've tried the options listed on this link (https://help.pythonanywhere.com/pages/VirtualEnvInScheduledTasks) but no matter what I do I get the below error when the task runs:
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Not sure how I can import my other code into the scheduled task py file?