Home > OS >  Apache deployment django, running django timing task
Apache deployment django, running django timing task

Time:09-29

Everyone a great god, and have mastered the Apache service, meet a problem, will be deployed to the Apache django, want to run to write good timing task, timing task load location in urls, Apache start later have to visit a url to start timing task, but if use pure python manage runserver then executes can directly start timing task, so I want to know how to get the Apache starts not to visit the url can start timing task, thank you!!!!!!

CodePudding user response:

Don't know how to do your regular task, you put the URL in the first page, not loaded once?

CodePudding user response:

reference 1st floor ojc8882003 response:
don't know how to do your regular task, you put the URL in the first page, not loaded once?

I was written in a separate script will automate tasks, and then import task in urls, initialize, django runtime can drive the task directly, but now to start with Apache, the task will not be open, as if is in the listening state after the Apache open, only I initiate a request, the project will run, but I this project is mainly used for the background, to initiate the request, specially after can't open so do not know to have what good method is to start the Apache internally when launch a request,
  • Related