Using django ORM from non django python script
Faced the same problem and finally decided to implement a daemon in django custom command.
You can import anything django related there just as you would normally do in django code, while implementing your own code.
Here is the scenario. I have Django project and python script project under a directory. The python script needs to runs independently on a scheduled time and also needs to access Database used by Django.
Is it possible to use/import existing Django code in python script to access db. If so how?
The idea comes for C# app where Models and data access layer can be built as library and can be used in many projects.