I was thinking of making settings.py start the process but this seemed slightly ugly.
I don’t really want to make make custom start up scripts, nor can I really make the starting of this process lazy.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You might be able to register a listener to the ‘class-prepared’ signal on one of your model classes and fire your process from there. However, I think the need to do this is most likely a design smell, or a case of the tail wagging the dog.
http://docs.djangoproject.com/en/dev/ref/signals/#class-prepared
I’d be curious to know why your design calls for this, but that may get us off-topic here.