Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hope to support django2.20+ #98

Open
yuzg667 opened this issue Jun 4, 2019 · 8 comments
Open

Hope to support django2.20+ #98

yuzg667 opened this issue Jun 4, 2019 · 8 comments

Comments

@yuzg667
Copy link

yuzg667 commented Jun 4, 2019

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+.

@ghost
Copy link

ghost commented Jul 31, 2019

Work fine in my project powered by django2.2

@eluizbr
Copy link

eluizbr commented Aug 24, 2019

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

@ashrafemad
Copy link

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

@eluizbr
Copy link

eluizbr commented Sep 23, 2019

@ashrafemad can show your code?

@ashrafemad
Copy link

@eluizbr

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

CRONTAB_DJANGO_SETTINGS_MODULE = 'my_project.settings.staging'

@Sunnnner
Copy link

Sunnnner commented Nov 2, 2020

@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?

@ashrafemad
Copy link

@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

@Sunnnner
Copy link

Sunnnner commented Nov 2, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants