Can I create sub domain for each user in Django -


i want users create own account , users should own user.foo.com , different point different template folder. possible in django. quite new django

django unaware of whatever web server using. usually, configure sub-domains, need add virtual hosts webserver's configuration , make sure dns provider forwards requests sub-domain appropriate server.

to directly, you'll need run django under user account has write access webserver's configuration file, really not recommended. assuming hosts on same machine, indirectly, such queuing requests , have manually approve them , edit file, or have script run through cron , re-write server configuration every x minutes/hours/days.

also, dns registration major issue. if have wildcard domain name such "*.foo.com", you'll fine. if dns provider doesn't allow this, you'll need have register sub-domains manually.

basically, none related django, , of depends on server's software stack (which have not specified).


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -