Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run different Django apps on different subdomain

Can it be possible to run Different Django apps on different Subdomains. For Example:

For api.mydomain.com all request will be handled by my API app. But all other requests will be handled by my core app. I just want my API app to handle request made on api.mydomain.com. And all other requests should simply be passed to www.mydomain.com.

like image 983
Vaibhav Jain Avatar asked Dec 19 '25 11:12

Vaibhav Jain


1 Answers

I have used django-subdomains.

Subdomain helpers for the Django framework, including subdomain-based URL routing and reversing.

Found solution at http://django-subdomains.readthedocs.org/en/latest/index.html

like image 120
Vaibhav Jain Avatar answered Dec 21 '25 04:12

Vaibhav Jain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!