Hi again,

It seems trememdously hard in Django to run code only once when the app 
starts, instead it is executed once per process. I tried wsgi.py, 
settings.py, apps.py, and many others. Is it a good idea to use the 
--service-script option for that purpose?

I want to scan a folder when the app starts to update my database according 
to the files found there.
Like
    --service-script scan myapp/scripts/scan_folders.py
even if I don't use the service anymore after that.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to