title: Make Django Admin Commands run automatically in deployment (apache2)
body: <p>I am creating an eCommerce site and want to delete rows of the <code>order</code> table after 20 days has passed. And I was successfully able to do that!
  My code...</p>
  <p>delete_old_orders.py</p>
  <pre><code>from django.core.management.base import BaseCommand, CommandError
  from store.models import Order 
  from datetime import datetime, timedelta
  
  class Command(BaseCommand):
      help = 'Delete objects older than 20 days'
  
      def handle(self, *args, **options):
          Order.objects.filter(order_date__lte=datetime.now()-timedelta(days=20)).delete()
          self.stdout.write('Deleted objects older than 10 days')
  </code></pre>
  <p>In which, just for your information my file location goes as...</p>
  <pre><code>store/
      models.py
      management/
          __init__.py
          commands/
              __init__.py
              delete_old_orders.py
      tests.py
      views.py
  </code></pre>
  <p>Every time in order to run it, I need to run the code <code>python manage.py delete_old_orders</code> in the terminal.
  However, this is in my local machine, when I want this to run <strong>every day at 2am</strong> in my server, which runs apache2 in Ubuntu. How should I deal with this?
  Should I alter my config file in the server?</p>
  <p>Any help would be much appreciated!</p>
  <p>Thanks!</p>