You cannot import a command, but, for example, by importing the above function, it provides the start of the connect call. A function call in the body of the models.py file is also performed from the same raeson (i.e. Models are imported).
print "hello"
def x():
pass
>>> from p import x
hello
>>>
source
share