gpt4 book ai didi

make prestashop store in a django subdomain(在Django子域中存储prestashop)

转载 作者:bug小助手 更新时间:2023-10-28 21:22:21 31 4
gpt4 key购买 nike



good afternoon everyone, I have my website made with django (python app), hosted in the domain www.cannareis.com.ar.
but I want to add a virtual store using prestashop. Thanks to my hosting provider, I can download prestashop directly from the Cpanel of my website.
Since I already have my page made with django, I don't want or can't put my page made with prestashop in the same domain, so I created a subdomain called www.tienda.cannareis.com.ar.
but when I want my prestashop to be hosted there, it doesn't let me and the first thing that appears when I enter is the django error message, asking me to put the domain in allowed hosts. I don't understand why the django message appears if I'm on a subdomain, I'm not on the original domain where I put my django app.
I tried to register the subdomain in allowed hosts (settings.py) but when I do that, when I enter the subdomain www.tienda.cannareis.com.ar , the main template of my web page appears, that is, the "home". and to access the prestashop page I have to add /es to the url. that is to say, it remains www.tienda.cannareis.com.ar/es/

大家下午好,我的网站是用Django制作的,托管在www.canareis.com.ar域中。但我想使用prestashop添加一个虚拟商店。多亏了我的托管服务提供商,我可以直接从我网站的Cpanel下载prestashop。因为我已经有了用Django制作的页面,我不想也不能把我用prestashop制作的页面放在同一个域中,所以我创建了一个名为www.tienda.canareis.com.ar的子域。但当我希望我的prestashop托管在那里时,它不允许我这样做,当我进入时,首先出现的是Django错误消息,要求我将域名放在允许的主机中。我不明白为什么Django消息会出现如果我在一个子域上,我不在我放Django应用程序的原始域上。我试图在允许的主机(settings.py)中注册子域,但当我这样做时,当我进入子域www.tienda.canareis.com.ar时,我网页的主模板就会出现,也就是“home”。要访问prestashop页面,我必须将/ES添加到URL。也就是说,它仍然是www.tienda.canareis.com.ar/es/


or putting anything after the / takes me to the prestashop page, but I want my prestashop project to appear as soon as www.tienda.cannareis.com.ar is written, but my django project overlaps that.

或者在/之后添加任何内容都会将我带到prestashop页面,但我希望在www.tienda.canareis.com.ar编写完成后立即显示我的prestashop项目,但我的Django项目与此重叠。


更多回答
优秀答案推荐

I'm pretty sure it has nothing to do with PrestaShop and is related to how your server is configured. Your subdomain should point to the directory where your PrestaShop files are available. Probably, it is not the case right now. I would recommend asking the hosting provider how to deal with it.

我非常肯定这与PrestaShop无关,而是与您的服务器如何配置有关。您的子域应该指向PrestaShop文件可用的目录。或许,目前情况并非如此。我建议询问托管提供商如何处理它。


更多回答

Genial, gracias.

和蔼可亲,谢谢你。

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com