Thanks for the report, Matt. 

On Jan 16, 2011, at 5:11 PM, Matt wrote:
> 
> Hi Jonathan,
> 
> I'm also trying to use the new routing approach and I'm having a
> little trouble with static files.
> 
> In my app's static directory I have sub folders (containing files)
> like this:
> 
>  /static/css/base.css
>  /static/images/logo.png
>  /static/js/jquery.js
> 
> I'm using the most minimal routing:
> 
> routers = dict(
>    BASE = dict(
>        default_application = 'app',
>    ),
> )
> 
> routes_onerror = [(r'*/*', r'/error')]
> 
> Now when I try and request certain files I seem to get very unexpected
> results....
> 
> When I try:
> 
> http://localhost:8000/css/base.css
> 
> it works.

OK, I wouldn't expect that to work.

Your app name is 'app', right?

> 
> however when I request an invalid link like:
> 
> http://localhost:8000/css/base2.css
> 
> It doesn't raise a 404 as I'd expect.
> 
> Also for some reason I can't seem to use:
> 
> http://localhost:8000/static/css/base.css (gives a 403 error and
> doesn't redirect to error).
> 
> But I have to use 'static' for javascript files:
> 
> http://localhost:8000/static/js/jquery.js
> 
> As
> 
> http://localhost:8000/js/jquery.js  gives an error and redirects to :
> 
> http://localhost:8000/error?code=400&ticket=None&requested_uri=/js/jquery.js&request_url=/js/jquery.js
> 
> Any suggestions?

I'll investigate, using your parameters. Can't promise to get to it tonight, 
though.

Reply via email to