Reputation: 87
I want to create Jobs scheduling. I used this command : python manage.py create_jobs app_name but I get : Unknown command: 'create_jobs'
Upvotes: 0
Views: 507
Reputation: 476567
Django has no create_jobs
command. A package named django-extensions
[readthedocs] has such command.
You can install it by installing django-extensions
in your virtual environment, for example with:
pip3 install django-extensions
and in the INSTALLED_APPS
setting [Django-doc] of the settings.py
file, add 'django_extensions'
:
INSTALLED_APPS = [
# …
'django_extensions',
# …
]
Then you can indeed use the create_jobs
command.
Upvotes: 1