Re: django, multi-tenancy and urls

2014-12-10 Thread Collin Anderson
Hi,

Are you using nginx or apache?

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

Collin

On Friday, December 5, 2014 6:10:36 AM UTC-5, vijay shanker wrote:
>
>  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?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8a19275e-24eb-4ef7-87c2-85a0479bf3d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django, multi-tenancy and urls

2014-12-05 Thread Kelvin Wong
Take a look at Cartridge. It has multi-tenancy out of the box.

The rewriting can be done in Nginx or Apache.

K


On Friday, December 5, 2014 3:10:36 AM UTC-8, vijay shanker wrote:
>
>  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?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/26d8ac72-9fe6-43e8-a70c-1a2c2220e58a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django, multi-tenancy and urls

2014-12-05 Thread vijay shanker
 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?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eaffae15-8533-4c26-9b22-6ce483d0396e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.