Hello James, If I understand correctly, the problem is that runserver fails to boot because it cannot perform checks, some of which connect to the database (e.g. the check that all migrations were run).
Is that what you're talking about? I suppose the fix involves something like: while True: try: perform_system_checks() # I made this up except Exception: log_exception() # ditto time.sleep(1) else: break Assuming the exception is clearly reported, that would be more beginner-friendly, which is a design goal of runserver. I think it's worth exploring, provided it doesn't create too much complexity. Best regards, -- Aymeric. > On 1 Mar 2017, at 21:59, James Pic <j...@yourlabs.org> wrote: > > Hi all, > > It seems like runserver won't retry to connect to the database after a > failing connection. Once the db server is up, it looks like I have to restart > runserver manually. > > If this is correct, may I suggest that we make runserver retry connecting to > the database if it fails ? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com > <mailto:django-developers+unsubscr...@googlegroups.com>. > To post to this group, send email to django-developers@googlegroups.com > <mailto:django-developers@googlegroups.com>. > Visit this group at https://groups.google.com/group/django-developers > <https://groups.google.com/group/django-developers>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/CAC6Op19Q3nGUU1wCCsmdJbHhUvqEuaS-wNc9htAE1QXLQocsBw%40mail.gmail.com > > <https://groups.google.com/d/msgid/django-developers/CAC6Op19Q3nGUU1wCCsmdJbHhUvqEuaS-wNc9htAE1QXLQocsBw%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/7F4FC0B0-8A47-4219-83FC-978A37F10D84%40polytechnique.org. For more options, visit https://groups.google.com/d/optout.