开发者

Call function in views.py from command line (django)

I'm trying to run a function defined in the views file of my django app, from the command line. Is there a way to do this?

I understand view functions are supposed to be called from a request but I need this f开发者_C百科unction to be called from a cron eventually.

Thanks


You can use custom management commands.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜