Joel Mathew
2018-11-22 07:48:22 UTC
I was trying the basic django-kronos command to test:
I did pip3 install django-kronos,
myproject/myapp/cron.py:
import kronos
import random
@kronos.register('* * * * *')
def complain():
complaints = [
"I forgot to migrate our applications's cron jobs to our new server! Darn!",
"I'm out of complaints! Damnit!"
]
print random.choice(complaints)
In my myproject/myproject/settings.py:
INSTALLED_APPS = [
'appointments.apps.AppointmentsConfig',
'clinic.apps.ClinicConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_extensions',
'bootstrap4',
'widget_tweaks',
'parsley',
'session_security',
'kronos'
]
Ran:
./manage.py runserver
I expected the dev server to throw up a message every minute. Nothing seems
to be happening.
Sincerely yours,
Joel G Mathew
I did pip3 install django-kronos,
myproject/myapp/cron.py:
import kronos
import random
@kronos.register('* * * * *')
def complain():
complaints = [
"I forgot to migrate our applications's cron jobs to our new server! Darn!",
"I'm out of complaints! Damnit!"
]
print random.choice(complaints)
In my myproject/myproject/settings.py:
INSTALLED_APPS = [
'appointments.apps.AppointmentsConfig',
'clinic.apps.ClinicConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_extensions',
'bootstrap4',
'widget_tweaks',
'parsley',
'session_security',
'kronos'
]
Ran:
./manage.py runserver
I expected the dev server to throw up a message every minute. Nothing seems
to be happening.
Sincerely yours,
Joel G Mathew
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA%3Diw_9TOrybmhDJhG%2BB%3DsmScROAA1s4vJn2xmqaYbDtBNeerQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA%3Diw_9TOrybmhDJhG%2BB%3DsmScROAA1s4vJn2xmqaYbDtBNeerQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.