Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJordan Byrne
1,411 PointsWhat's possible with Django
I'm beginning the django track and I have a couple of questions about how certain features click together.
Firstly, django seems like an engine for getting and requesting data from a database but is it possible to run scripts in a django app. For example can a script run for all users of the app at 8pm each day and carry out some functionality. If so can someone point me to a source where I can read up a bit more on how to do this it would be great!
Also, I'm interested in machine learning and data science in general. How does the code you write to analyse data plug in with your django app? Does it exist somewhere entirely different and the app serves the data in a restful approach?
Again, I'm new and just looking to learn about how the pieces of a web app click together.
Thanks in advance for any responses,
Jordan
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsThere are some scheduling suggestions in this StackOverflow post. They discuss setting up your own manage.py
command, using celery to schedule tasks. A customized solution is also presented.