I have a large number of view functions which require various python,
django and other import statements.

My question is: is it ok to put ALL my import statements at the top of
views.py and then not have to worry about which view fuction uses
what. Or must I put my imports within the view fuctions that require
them?

Does it depend on how many functions require I certain import? And if
so, how many imports justifies a global import at the top of the code?

I'm interested on the effect this decision has on speed/memory usage
etc.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to