Django custom command and cron

后端 未结 6 1837
刺人心
刺人心 2020-12-02 15:17

I want my custom made Django command to be executed every minute. However it seems like python /path/to/project/myapp/manage.py mycommand doesn\'t seem to work

6条回答
  •  一生所求
    2020-12-02 15:38

    The runscript extension wasn't well documented. Unlike the django command this one can go anywhere in your project and requires a scripts folder. The .py file requires a run() function.

提交回复
热议问题