I'm writing some views in Django, the are just python functions really. I'm curious as to whether there's a better way for me to arrange my files.
It this...
import a, b
def x(request): return a(request)
def y(request): return b(request)
Less efficient than putting it in two files?
import a
def x(request): return a(request)
and
import b
def y(request): return b(request)
Since for each request made only one of these functions will be called, it seems to me that having the other one in the same file and importing all the modules the other one needs is a bad idea. Am I right? Does django just import the whole lot anyway?