Re: Directory structure & common functions

2006-08-15 Thread Michal
Thank you for help guys. I put into "utils" directory __init__.py file, and now I am able to import functions from this directory. Regards Michal Ian Clelland wrote: > On 8/14/06, Michal <[EMAIL PROTECTED]> wrote: >> I would like make subdirectory "utils", and import from it all files >> which

Re: Directory structure & common functions

2006-08-15 Thread Ian Clelland
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

Re: Directory structure & common functions

2006-08-15 Thread SmileyChris
Hi Michal, Try importing with the project name as part of the import path: from projectname.utils.strings import convert_string --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Directory structure & common functions

2006-08-14 Thread Michal
Hello, I have question about directory structure. Look at this please: / /app1 /app2 /app3 /templates At the root there is files like urls.py, settings.py, etc. There are also many subdirectories with applications, and subdirectory with templates. Now, I have some common