Re: dividing up views.py into multiple files

2007-01-10 Thread Stefan Foulis
thanks for the reply... adding the empty __init__.py file worked. I like Rubics idea aswell. Importing extra utilities could prove very flexible. thanks again :) -- stefan On Jan 10, 2007, at 15:54, Nathan R. Yergler wrote: > > Did you add a file named __init__.py to the views directory you

Re: dividing up views.py into multiple files

2007-01-10 Thread Rubic
Stefan Foulis wrote: > what I'm trying to do is divide up the views.py file into multiple > files because the single views.py file in some of my apps is getting > very cluttered. > > I tried just making a views subdirectory and then placing multiple > files with groups of views inside Ditto to wh

Re: dividing up views.py into multiple files

2007-01-10 Thread Nathan R. Yergler
Did you add a file named __init__.py to the views directory you created? This file tells Python to treat the directory as a package and allow traversal into the view file. NRY Stefan Foulis wrote: > I searched around the django documentation and didn't find anything > about this... > > what

dividing up views.py into multiple files

2007-01-10 Thread Stefan Foulis
I searched around the django documentation and didn't find anything about this... what I'm trying to do is divide up the views.py file into multiple files because the single views.py file in some of my apps is getting very cluttered. I tried just making a views subdirectory and then placin