Answer the question
In order to leave comments, you need to log in
How to manage subdomains from one django admin?
Tell me, knowledgeable gurus)
The bottom line: there is a website. You need to attach 3 separate pages on subdomains to this site and manage them from one admin panel.
That is: here is the main domain example.com.
1 page: first.example.com
2 page: two.example.com
3 page: third.example.com
And the admin panel is one example.com/admin
I tried this: different django.wsgi, in which, depending on the address, the necessary one is called config, url and so on. But this is not the way out.
Thanks to everyone who helps.
Answer the question
In order to leave comments, you need to log in
You don't need to use different django.wsgi, you just need to make django routing work with subdomains.
Here is an example package to support subdomain routing: django-subdomains
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question