Many thanks for the response. I had also been thinking of using a
custom predicate which checks the value of, say, request.host. It
feels like a bit of a kludge though. And I'm still curious as to why
the documentation mentions using pregenerators.

Another tricky thing about subdomains is serving static assets. Given
the subdomain:

http://myproject.mydomain.com

I would like to serve static assets from:

http://myproject.mydomain.com/static

I think this could be done by passing the full URL above to
pyramid.config.Configurator.add_static_view() as the name argument.
Again, this seems like a bit of a hack - especially as the URL would
need to change depending on the environment (development or
production).

I will crack on with the methods outlined here but if there is a
cleaner or Pyramid-recommended way to handle subdomains, please let me
know. Cheers...

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to