i use sub folders all the time - python does the import with dot notation: import users.test_users
cfh On Sunday, January 6, 2013 8:15:29 AM UTC-8, villas wrote: > > Never had to do this but I wonder... > Do you really have so many module files for one app that you need to > organize them using sub-directories? > > > > On Friday, January 4, 2013 12:19:52 PM UTC, Yasir Saleem wrote: >> >> Hi all, >> >> In my modules directory, I created a new directory named "users" and >> create a python file "test_users.py" within "users" directory. The >> structure is like this: >> >> *my_application/modules/users/test_users.py* >> >> I know that files within modules directory can be imported simply by >> "*import >> filename.py" *statement but how to import this one. >> I have tried "import models/users.py" but it gives me following error: >> >> Encountered "/" at line 22, column 14. Was expecting one of: <NEWLINE >> > ... ";" ... "," ... "." ... "as" ... ";" >> >> >> >> --

