django-crontab icon indicating copy to clipboard operation
django-crontab copied to clipboard

Hope to support django2.20+

Open yuzg667 opened this issue 5 years ago • 8 comments

Environment & Versions

  • Operating system: centos 7
  • Python: python3.7
  • Django: 2.2
  • django-crontab: latest

Details

Has the app been updated for a long time? Currently django-crontab only supports django2.0 version. I hope to support the newer version of django, such as django2.20+.

yuzg667 avatar Jun 04 '19 09:06 yuzg667

Work fine in my project powered by django2.2

ghost avatar Jul 31 '19 13:07 ghost

Hi, @zmrenwu Can show us your setup? I'm trying using on Django 2.20 without success

eluizbr avatar Aug 24 '19 15:08 eluizbr

Worked for me with Django 2.2.4 i was working locally with SQLite db so crontab couldn't find the database file, that's why it wasn't working for me but when moved to Postgres, it works fine

ashrafemad avatar Sep 23 '19 01:09 ashrafemad

@ashrafemad can show your code?

eluizbr avatar Sep 23 '19 10:09 eluizbr

@eluizbr

CRONJOBS = [ ('0 2 * * *', 'django.core.management.call_command', ['update_user_status']) ]

CRONTAB_DJANGO_SETTINGS_MODULE = 'my_project.settings.staging'

ashrafemad avatar Sep 23 '19 10:09 ashrafemad

@eluizbr

CRONJOBS = [ ('0 2 * * *', 'django.core.management.call_command', ['update_user_status']) ]

CRONTAB_DJANGO_SETTINGS_MODULE = 'my_project.settings.staging'

Does it still work on django2.2?

Sunnnner avatar Nov 02 '20 08:11 Sunnnner

@eluizbr CRONJOBS = [ ('0 2 * * *', 'django.core.management.call_command', ['update_user_status']) ] CRONTAB_DJANGO_SETTINGS_MODULE = 'my_project.settings.staging'

Does it still work on django2.2?

I think yes, I've been using it for a while and no problems noticed

ashrafemad avatar Nov 02 '20 08:11 ashrafemad

@eluizbr CRONJOBS = [ ('0 2 * * *', 'django.core.management.call_command', ['update_user_status']) ] CRONTAB_DJANGO_SETTINGS_MODULE = 'my_project.settings.staging'

Does it still work on django2.2?

I think yes, I've been using it for a while and no problems noticed

Since I upgraded Python3.7 and django2.2, django-crontab doesn't work anymore, and it doesn't work if I use your configuration

Sunnnner avatar Nov 02 '20 11:11 Sunnnner