[英]Using Django tenants on the same domain, rather than subdomains or multiple domains
[英]Multiple Domain and Multi Directory in the same Django App
我试图在同一个 django 应用程序中支持具有混合多个域和多个目录的相当复杂的体系结构。 基本上,我们会有这样的网址:
http://www.firstdomains.com/(DJANGO_APP)
http://www.firstdomains.com/de/(DJANGO_APP)
http://www.other.com/esp/best/(DJANGO_APP)
http://www.complex.com/it/(DJANGO_APP)
http://www.last.com/(DJANGO_APP)
.... (lot more)
“组合”域/目录将确定主题网站和语言。 您认为实现这一点的最佳方法是什么?
你很幸运! Carl Meyer最近为您发布了完美的应用程序: django-hosts
If for some reason the URL parts don't work for you try also adding one of the apps that do URL i18n/l10n such as http://pypi.python.org/pypi/transurlvania
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.