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.

On Wednesday, March 22, 2017 at 12:16:16 PM UTC-4, guettli wrote:
>
> If I recall correctly, then you should not execute db-queries during 
> import.
>
> I think this can do a lot of trouble. For example during test-discovery 
> db-queries get executed.
>
> Is it just me being paranoid, or is this a general advice?
>
> I tried to find something about this topic with my favorite search engine, 
> but failed.
>
> What do you think?
>
> Regards,
>   Thomas Güttler
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d5838299-a4db-47dc-bc22-fd517b99aa99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to