Matthias Kestenholz wrote:
> I can think of two methods of loading Variable inside your calculate
> function:
> 
> - Write the import statement in the function instead of writing it at
> the top of the module.

You may only use module level imports* out off the main scope. And then 
you could just as well import it at the top of the file as you would 
otherwise.

* that is, `import ...` not `from ... import ...`.

/Christian

-- 
Christian Joergensen
http://www.technobabble.dk

--~--~---------~--~----~------------~-------~--~----~
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