Django: is it possible to separate DB writing funcionality?
<p>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: </p>

<pre><code>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)
    ...
</code></pre>

<p>I would suggest you to write a <a href="https://docs.djangoproject.com/en/1.10/howto/custom-management-commands/" rel="nofollow">custom management command</a> and then run it whenever you want.</p>

<p>Take a look at <a href="http://stackoverflow.com/a/573659/5098707">this</a> answer.</p>

python django windows