Answer the question
In order to leave comments, you need to log in
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
In the middleware, depending on the domain, substitute the necessary data - be it urls or some other things.
As I continued to dig, I came across django-hosts from the Django developers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question