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

how to write CRON_CLASSES = [ "my_app.cron.MyCronJob"] #16

Closed
Mark-Shine opened this issue Feb 28, 2013 · 4 comments
Closed

how to write CRON_CLASSES = [ "my_app.cron.MyCronJob"] #16

Mark-Shine opened this issue Feb 28, 2013 · 4 comments

Comments

@Mark-Shine
Copy link

when i run "python manage.py runcrons"
i get "make sure these are valid cron class name:[……]"

i have no idea about CRON_CLASSES

@dfryta
Copy link
Member

dfryta commented Feb 28, 2013

Please check read me at main site:

https://github.com/Tivix/django-cron#installation

@Mark-Shine
Copy link
Author

sure ,i have read your instruction already , and did step by step as it says ,however ,it doesn't work.

ps.. i put "CRON_CLASSES"in setting.py is it alright ?

@dfryta
Copy link
Member

dfryta commented Feb 28, 2013

Yes. Add this into your settings file and fill up with path to your cron class, example:

CRON_CLASSES = [
"my_app.cron.MyCronJob",
]

So in my_app you have cron.py file with MyCronJob class.

  • my_app
    • cron.py

@dfryta dfryta closed this as completed Feb 28, 2013
@Mark-Shine
Copy link
Author

ok i get it ~ thank you for help!

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

2 participants