django, multi-tenancy and urls

68 views
Skip to first unread message

vijay shanker

unread,
Dec 5, 2014, 6:10:36 AM12/5/14
to django...@googlegroups.com
 am writing a e-commerce application where different people can have stores with urls like this: www.store-one.saas.com, www.store-two.saas.com, and so on.

These domains have to be generated automatically when a user signs up for store.

I have read somewhere that www.saas.com/store-one can be rewritten as store-one.saas.com (ofcourse, they din told me how :( ).

Is it possible and how it can be done, how can i achieve it in production and with my local machine?

Kelvin Wong

unread,
Dec 6, 2014, 12:12:20 AM12/6/14
to django...@googlegroups.com
Take a look at Cartridge. It has multi-tenancy out of the box.

The rewriting can be done in Nginx or Apache.

K

Collin Anderson

unread,
Dec 10, 2014, 8:30:21 AM12/10/14
to django...@googlegroups.com
Hi,

Are you using nginx or apache?

The especially tricky part about this is handling the local-machine case.

Collin
Reply all
Reply to author
Forward
0 new messages