M
M
Maxim Alyukov2020-06-22 13:38:00
Django
Maxim Alyukov, 2020-06-22 13:38:00

How to link third level domain with Django?

Hello. Tell me, please, how best to implement a bunch of several domains with one project? For example:
forum.example.ru will link to one application
example.ru links to another

PS I found this implementation ( documentation ) but I'm not sure if this is the only correct way

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alternativshik, 2020-06-22
@alternativshik

In the middleware, depending on the domain, substitute the necessary data - be it urls or some other things.

M
Maxim Alyukov, 2020-06-22
@mvxmvl

As I continued to dig, I came across django-hosts from the Django developers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question