On 8/14/06, Michal <[EMAIL PROTECTED]> wrote:
> I would like make subdirectory "utils", and import from it all files
> which I need in particular application. But if I type for example:
> from utils.strings import convert_string
> I receive error: "Could not import app1.views. Error was: No module
> named utils.strings

If you want to be able to import files like this, you will need a file
in the utils directory called __init__.py. You can leave the file
empty, but it has to be there for python to recognise the directory as
a package.


Regards,
Ian Clelland
<[EMAIL PROTECTED]>

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

Reply via email to