M
M
mr_drinkens892015-01-19 16:46:56
Django
mr_drinkens89, 2015-01-19 16:46:56

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

1 answer(s)
Y
Yuri Shikanov, 2015-01-19
@dizballanze

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 question

Ask a Question

731 491 924 answers to any question