Correct, module level queries should be avoided. Django might try to add some detection to warn about or prohibit that, see https://groups.google.com/d/topic/django-developers/7JwWatLfP44/discussion.
> Is it advisable to execute db queries in my AppConfig ready signal handler?AppConfig.ready() is still at module-level.
> Use case: I want to add URL patterns which get collected from db rows.It might be more appropriate to define an URL resolver (an object like django.conf.url)that performs queries at resolve()/reverse() time instead.A simpler solution could be to define a catch all view like django-cms does andperform the routing inside the view.