Unfortunately routes out cannot match the domain only the path.
Perhaps this can be changed. Open a ticket about it.

massimo



On Saturday, 14 July 2012 09:13:51 UTC-5, spiffytech wrote:
>
> I'm trying to make routes_out put all requests for static content on a 
> static subdomain, e.g. domain.com/static/file.css -> 
> static.domain.com/static/file.css
>
> The following is the closest I've come, but it doesn't work- it produces 
> static.<ip address>/static/file.css. What am I doing wrong?
>
> routes_out = (
>     (r'(?P<domain>[^/]+):/$a/static/(?P<any>.*)', r'http://static
> .\g<domain>/$a/static/\g<any>'),
> )
>
>

Reply via email to