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 function (not models, just function for string
and list manipulations, etc), which are used in all applications.
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
How do you solve this in your projects? Do you create extra application
"utils", or do you have some another approach?
Thank you for answer.
Regards
Michal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---