I am creating a SaaS project with Django. I decided to use django-saas-kit for the user subscriptions and multi-accounts part.
Ideally I would like to be able to create a new site for each user and a separate database. Does the sites framework support this? How can it be implemented?
Thanks.
You should create a "clients" folder, and a subdirectory per client. In each subdirectory, create a site_settings.py file as such:
Then don't forget to use the --settings switch for management commands. For example:
Don't forget that each client will require to have his own extra stuff. For example, if you use haystack with whoosh, you need to add this so that it doesn't get mixed up between clients:
Or with django-zstask:
Or with JohnnyCache: