Django URLS

39 views
Skip to first unread message

Lekan Wahab

unread,
Nov 17, 2016, 1:17:37 PM11/17/16
to django...@googlegroups.com
If i have a url like *fruits.com*, does anyone know how i can write my subdomain urls in django to be *apple.fruits.com* instead of *fruits.com/apple* ?

Antonis Christofides

unread,
Nov 18, 2016, 2:17:46 AM11/18/16
to django...@googlegroups.com
Hi,

Could you explain a bit better what you want and what you have achieved so far? Could you show us your urls.py and/or nginx or apache configuration?

Regards,

Antonis
Antonis Christofides
http://djangodeployment.com
On 2016-11-17 20:17, Lekan Wahab wrote:
If i have a url like *fruits.com*, does anyone know how i can write my subdomain urls in django to be *apple.fruits.com* instead of *fruits.com/apple* ?

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE6v7odjAUgPXgeU6c%2BTuxVbFTx%3Dgzmp%3DFUboyD1tm1kWgMo5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Stefano Probst

unread,
Nov 18, 2016, 3:57:12 PM11/18/16
to Django users
Hi,

I think you search something like django-subdomains.

regards
Stefano
Reply all
Reply to author
Forward
0 new messages