You would have to yes first configure your name servers and allow your website example.com to resolve each of those subdomains. So hopefully your number of users won't be too high :( If your allowed you might find it easier to do example.com/moris/, but I would assume you can't do that.
Setting up multiple databases isn't too hard and you can use RAW SQL to help you with it. Django can handle subdomains with certain plugins like: http://django-subdomains.readthedocs.org/en/latest/index.html But you still have to configure the name servers. So your goal would be to sign up a new user and then make a database for the user, add the tables and insert into the tables Django supports multiple databases (but I'm not sure you can use Django to create a new db on the fly): https://docs.djangoproject.com/en/dev/topics/db/multi-db/ Hopefully this gets you started On Saturday, October 13, 2012 4:25:36 AM UTC-7, Monty0nWeb wrote: > > Hi, > > We have multiple users and each user needs to have a subdomain along with > a separate database for each one of them, > > Like *moris.example.com* ..... to have a database by name moris or > something like that, > and so on for different customers. > > Having multiple databases is necessary because of policy they have. > > What is the best approach to do this, i just saw many discussions on > stackoverflow, where they said having such a set up is not advisable. But > here i cant really go with it. > > What is the best way to go about this? Please advice. > > > > Thanks > > > > -- > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GsNLRKmZjnoJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.