Vit Amin
Vit Amin

Reputation: 683

Django 2.2 with 2 domains

I have a Django web app and 2 domains. I want to use these domains for the different Django apps.

For example:

Is it possible? How should urls.py looks like?

Upvotes: 0

Views: 41

Answers (1)

itismoej
itismoej

Reputation: 1847

Django comes with an optional “sites” framework. It’s a hook for associating objects and functionality to particular websites, and it’s a holding place for the domain names and “verbose” names of your Django-powered sites. Use it if your single Django installation powers more than one site and you need to differentiate between those sites in some way.

The "sites" framework

Upvotes: 3

Related Questions