title: How to send weekly scheduled emails in Django
body: <p>I like to send scheduled emails for my users every Fridays.
  I'm using Pythonanywhere so I can't use Celery because PA can work with it. I like to use PA's Task function that can't schedule weekly tasks so it should check every day if it is Friday.
  I started to write a function but I'm not so experienced and stuck. I don't know how to write the function if it does not have any html where I hit a button to trigger the function.</p>
  <p>I made a <code>weekly_email_mm.py</code> file in my project directory:</p>
  <pre><code>import datetime
  from django.core.mail import send_mail
  from django.shortcuts import render
  
  today = datetime.date.today()
  weekday = today.weekday()
  
  def send_mm_email(???):
      
      subject = 'Hello'
      message = 'Hi there'
      
      if (weekday == 4):
          send_mail(
              subject,
              message,
              'something@from.com',
              ['user@xy.com'],
              fail_silently=False,
          )
          print('Friday, mails sent')
      
      else:
          print('Not Friday')    
      
      return render(???)
  </code></pre>
  <p>Thank you in advance if you can help me out!</p>