Howdy,
I'm looking to accomplish the same goal as Bartlomiej (older thread
below), namely, subdomains per user account and am hitting a snag.
I tried the tips from an earlier post:
map.sub_domains = True
# TestController
def index(self, sub_domain):
return 'Sub = %s' % sub_domain
And hitting c.localhost:5000/test (added c.localhost to my hosts
file), results in
Sub = None
I had a few questions:
What am I doing wrong?
Does sub_domain just get passed in to every controller action
implicitly every time?
Since nearly every controller action is going to use the sub_domain to
determine the correct database and so on, I feel like I should
probably put this in the base controller or something?
Any advice? Best practice for doing subdomains per user accounts?
Also, after reading this, I'm wondering if subdomains per user is such
a good idea.. Any opinions?
http://particletree.com/notebook/subdomains-development-sucks/
older related thread
http://groups.google.com/group/pylons-discuss/browse_thread/thread/4e28ac766bac4234/263a27b18c27e638?lnk=gst&q=sub+domains#263a27b18c27e638
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---