﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32167	app.ready()  is called after models ready, but the site's urlpatterns are not parsed yet, so how to add code after the whole site is ready?	zencore-cn	nobody	"app.ready()  is called after models ready, but the site's urlpatterns are not parsed yet, so how to add code after the whole site is ready, so that we can update models and reverse urls?

{{{
from django.apps import AppConfig
from django.urls import reverse

class Test002Config(AppConfig):
    name = 'test002'

    def ready(self):
        try:
            url = reverse(""admin:auth__user__changelist"")
            print(url)
            # reverse raise errors
        except Exception as error:
            pass
            # the admin site broken even we try...catch.. here
            # the admin site can login, but got error in admin index page

}}}"	Bug	closed	Core (Other)	2.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
