ciudadanointeligente / write-it

App to create and send messages to public persons. It's a component of POPLUS project.
poplus.org
GNU General Public License v3.0
38 stars 23 forks source link

Offer instance.choice_of_domains.com #621

Open tmtmtmtm opened 9 years ago

tmtmtmtm commented 9 years ago

Offer several domains at which people can run their instance.

tmtmtmtm commented 9 years ago

https://docs.djangoproject.com/en/1.7/ref/contrib/sites/ is probably what we want here.

duncanparkes commented 9 years ago

Getting everything to work on more than one domain is as simple as setting up the DNS with CNAME and then adding another row to the django_site table. What should then happen is that all interactions from someone who comes in on that domain continue to be on that domain.

duncanparkes commented 9 years ago

(obviously we'll also need to get the templates to display the right branding, if the sites are branded separately)

tmtmtmtm commented 9 years ago

And that will Just Work for instancename.domainname.com not just www.domainname.com/en/instances/instancename etc?