I have already ready WEBsite with user authentication. I need to implement corporate accounts functional, so that users of this account can go to the link corporate_account_name.main_domain.com and saw the same site as in main_domain.com only this version especially for them.
How to do it and where to dig? (or at least a list of technologies, frameworks):
- One code for all subdomains?
- Create separate database for each subdomain? At the same time you need to access data from main_domain to all subdomains and vice versa (subdomain -> main_domain).
- It is likely that the code may need to update the long migration of the database data. It is necessary that in this case all the subdomains not froze until the updated one of the bases.
- The server on apache. This restart apache every time you create a business account is not possible.
- Corporate accounts creates on the web interface main_domain.com (automatically), like a standard user registration. Do not manually!
- It is desirable for django.