Python Forum

Full Version: How to integrate a python algorithm in a Django website
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am a novice in web programming. Knowing well python I turned to Django. I am on a project where I have to retrieve data from a form and then process them. More precisely, I want to apply an algorithm that allows to classify people with different criteria (it is actually to ask their wishes to the people and classify each person in his highest wishes and outputs the newly created and classified lists by mail). This algorithm is in python and i want it to run each week. But I do not see how I could integrate this algorithm into my site.

thank you in advance

David Smile
(Feb-15-2017, 11:50 PM)daekch Wrote: [ -> ]This algorithm is in python and i want it to run each week.

Have you heard the word of our lord and savior, cron?
Hi David,

You can write the python algorithm in the Django file and can run the same in cron. Or you can schedule the weekly update in python schedule