I want to update DB using Windows Scheduler on a weekly basis. I have the code which extracts the data to be saved as a separate module, so I need to add DB write code there. Is it possible to run it without the server? If not, how to better run a server, make this task only and exit. I write like this now:
e = Employee()
e.profile_link = ...
...
e.save()
models.py:
from django.db import models
class Employee(models.Model):
profile_link = models.TextField(primary_key=True)
...