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.
精彩评论