-commands/
On Wed, Oct 14, 2015 at 10:53 AM, 'Chris Norman' via Django users
mailto:django-users@googlegroups.com>>
wrote:
Hi again,
I would like to set up a cron job to email the day's journeys to a
pre-defined set of email addresses, using the model I describe
Hi again,
I would like to set up a cron job to email the day's journeys to a
pre-defined set of email addresses, using the model I described in the
previous example.
I have it so I can type:
python manage.py shell
import journey_sender
This does everything.
Thing is, I would like to use the
Hi all,
I have written a Journey model, which has an out and a back field, both
of which are datetime fields.
What I want to do is something like:
from datetime import datetime
now = datetime.now()
for journey in Journey.objects.filter(out__month = now.month, out__day =
now.day):
print jour
3 matches
Mail list logo