python - Django project on two domains - limiting access to urls/views -


i working on django project. utilizes multiple small apps - 1 of them used common things (common models, forms, etc).

i want separate whole project 2 domains, i.g.:

corporatedomain.com , userportal.com

i want corporatedomain.com use different urls, same userportal.com.

is possible? if so, how can this? how should configure urls?

you have separate settings file anyway define different root_urlconf each domain.

update: if don't want use different settings have write middleware change request.urlconf attribute using http_host header. here example of such middleware.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -