Mark Ramm wrote:
> Pylons uses a folder called static which is searched first for a
> particular URL (before routes, and object dispatch)
> 
> So if you have an index.html file in static it will be used rather
> than the index method on your default object.
> 
> There are cases where this is useful, but I think having a static
> directory is also a good practice.  That way you can use mod-rewrite
> to have apache serve up your static content easily.

Note that you can use -f in a RewriteCond to test for the existence of a 
file, so you can use mod_rewrite with overlapping directories.  Just an FYI.

-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
             : Write code, do good : http://topp.openplans.org/careers

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to