I am trying to create a multi tenant site using django.So the basic idea is when ever a user fills all the details I want to redirect the user from mydomai.com/xyz to user.mydomain.com and if the user has a domain registered then I want to redirect the subdomain to that domain name. How can I implement the same using django?
Asked
Active
Viewed 968 times
1 Answers
0
from django.http import HttpResponseRedirect
There is more on https://docs.djangoproject.com/en/1.4/ref/generic-views/#django-views-generic-simple-redirect-to

Abhi
- 442
- 1
- 10
- 24
-
How will i create sub-domains in the first place to redirect to? – Subhajit Aug 26 '15 at 05:33
-
or this might explain you better http://stackoverflow.com/questions/6543145/can-i-create-sub-domain-for-each-user-in-django – Abhi Aug 26 '15 at 05:38