AFAIK, restarting apache process on deployment is standard, is there a reason you don't want to do that?
Templates are picked up because they're not evaluated and compiled, rather they're processed dynamically so any changes there do not require a restart. On Saturday, December 10, 2022 at 9:34:42 PM UTC-5 Mike Dewhirst wrote: > Server Version: Apache/2.4.52 (Ubuntu 2022.04) OpenSSL/3.0.2 > mod_wsgi/4.9.0 Python/3.10 Server MPM: event Server Built: > 2022-09-30T04:09:50 Apache *seems* to hang onto something and eventually > crashes after I reload it after deploying a Python file. > > That is either scripted (delete site and re-export from repo) or drag and > drop a py file using Filezilla on Windows. > > It *seems* ok if I redeploy html templates. > > I have asked on the Apache mailing list and the consensus seems to be that > something is "hogging" the mpm-event workers and I have to figure out what > and solve that. > > The only solution I have is to restart Apache. > > I have to think this is happening in other projects so I'm wondering if > anyone has solved this? > > Thanks for any feedback > > Mike > > -- > Signed email is an absolute defence against phishing. This email has > been signed with my private key. If you import my public key you can > automatically decrypt my signature and be sure it came from me. Just > ask and I'll send it to you. Your email software can handle signing. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8853bc85-97fb-48d7-af94-0807f777c0fan%40googlegroups.com.

