A
A
AlexandrBirukov2017-05-27 16:17:57
Django
AlexandrBirukov, 2017-05-27 16:17:57

Different templates for different domains in django?

The bottom line is this: there are two domain names (two sites) - name.com and name.ru. Sites use the same database, all views and the context in them are the same, the difference is only in the display. How can I use different templates for these names in the same django application? Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Penshin, 2017-05-30
@AlexandrBirukov

Create site1 and site2 folders in templates. And in a view to address to the necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question