Can you clarify: why do you put your controllers in the models folder?

On Wednesday, November 21, 2012 10:28:59 PM UTC+8, Brian Blais wrote:
>
> On Nov 21, 2012, at 4:55 AM, lyn2py wrote: 
>
> > You can remap this using routes.py 
> > 
> > On Tuesday, November 20, 2012 9:44:37 PM UTC+8, Brian Blais wrote: 
> > Hello, 
> > 
> > Is there a reason to have the controllers all in default.py, or is there 
> some reason to have certain controllers in default.py and others not?  When 
> you want to point to your actual app, I will want to give a url that is 
> http://..../appname/ 
> > 
> > not with the /default/ in it.  Is that remapped later? 
> > 
>
> Okay, so I can reroute it afterword, but is there any reason why I would 
> want to do this: 
>
>         all controllers in models/default.py 
>         remap to http://..../appname/ with routes.py 
>
> versus this: 
>
>         all controllers in models/ in their own files 
>         no need to remap with routes.py 
>
>
> It seems odd to have all the controllers in one big file, rather than 
> breaking them up, but perhaps there is a design reason for this. 
>
>                 thanks, 
>
>                         Brian Blais 
>
>
>
>
> -- 
> Brian Blais 
> [email protected] <javascript:> 
> http://web.bryant.edu/~bblais 
> http://brianblais.wordpress.com/ 
>
>
>
>

-- 



Reply via email to