Calling a function in views.py from the command line (django)

I am trying to run a function defined in the views file of my django application from the command line. Is there any way to do this?

I understand that the view functions are supposed to be called from the request, but I need this function to call from cron.

thanks

+4
source share
1 answer
+6
source

Source: https://habr.com/ru/post/1309877/


All Articles