Den 07/01/2014 kl. 14.40 skrev Mrinmoy Das <mrinmoy.da...@gmail.com>:

> Is there a pure django solution towards this problem?

There is the Django sites framework to help you decide what to do depending on 
the domain name you are receiving. See 
https://docs.djangoproject.com/en/dev/ref/contrib/sites/. Or just look at 
HttpRequest.META.HTTP_HOST and continue from there.

If you only want to offer subdomains to your users (user1.example.com), you 
just set up your DNS to pass all subdomains to your server (*.example.com).

If you want to offer arbitrary domain names, you either need to ask your users 
to register a domain name and set up their DNS to point to your server (and 
possibly set up your web server to accept these domain names), or become a 
domain name registrar yourself so you can handle the paperwork for them (like 
e.g. https://one.com does). The latter is not really an option if you are a 
small company.

Erik

-- 
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/AAE42C55-D776-4C4F-85C0-3F01CE525D1C%40cederstrand.dk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to