Y
Y
Yuri2021-06-13 10:30:35
Django
Yuri, 2021-06-13 10:30:35

How to set subdomains in django urls?

there is site.com
and there are subdomains of which there will be a set of *.site.com for example, each entry from a certain database, but this is not accurate) ALLOWED_HOSTS

= ['.site.com' ] one way and site.com the other way

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-06-13
@yuretzgt

yuretzgt like this django-hosts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question