django-tenants domain issue

673 views
Skip to first unread message

DumbaClassics

unread,
Jun 2, 2020, 8:55:43 PM6/2/20
to Django users
Hello Family

I have been following a set up documentation for django-tenants. I did all the set-up to even create a public domain and two tenant domains. For allowed hosts I put ["*"] , though not safe as per clinical research data its convinient for my localhost Test. I am having a challenge navigating to all my domains. The usual http://127.0.0.1: 8000/ gives me No tenant for hostname "127.0.0.1" which is of course reasonable...say my domain name for public is d.dumba.local and the tenant one td.test.local what would be the way to navigating to these domains. 

Your cooperation will be appreciated 

Sincerly D.C

Hella Nick

unread,
Jun 2, 2020, 11:08:41 PM6/2/20
to django...@googlegroups.com
你是要部署在互联网上吗?

DumbaClassics <dumbac...@gmail.com> 于2020年6月3日周三 上午8:56写道:
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/aafcef35-db62-4e0d-a744-0e94609dc9ab%40googlegroups.com.

Dumba Classics

unread,
Jun 3, 2020, 12:35:25 AM6/3/20
to django...@googlegroups.com
Nope I was just doing it on Localhost to test on how feasible it is for my project. Instead of checking with an app thats live I created a dummy project nd thats where I was working on. Why ask???

Virus-free. www.avast.com

Andréas Kühne

unread,
Jun 3, 2020, 5:49:32 AM6/3/20
to django...@googlegroups.com
You just need to add those to your hosts file locally on your computer.

If you are using Mac:

If you are using Linux:

If you are using Windows:


The hosts d.dumba.local and td.test.local both need to point to 127.0.0.1 and you are set.

Regards,

Andréas


--

Dumba Classics

unread,
Jun 3, 2020, 3:23:00 PM6/3/20
to django...@googlegroups.com
Thank you Sir you are a life saver


Reply all
Reply to author
Forward
0 new messages