[英]How to fix Django website showing 404 errors on all website links online
so i recently uploaded a my first django website on cpanel.所以我最近在 cpanel 上上传了我的第一个 django 网站。 After uploading i realised the website is showing 404 errors on all website links... let me show the links and urls
上传后我意识到该网站在所有网站链接上都显示 404 错误...让我显示链接和 url
`from .views.home import Index , shop, about
urlpatterns = [
path('', Index.as_view(), name='homepage'),
path('store', shop, name='store'),
path('about-us', about , name='about-us'),
]
`
The design of the website is supposed to automatically go to example.com/shop as the main page but its showing 404 errors instead该网站的设计应该自动 go 到 example.com/shop 作为主页,但它显示 404 错误
so .views is a folder under shop app所以.views是shop app 下的一个文件夹
Need assistance on urls and how to correctly configure my website to show content after page load在 url 以及如何正确配置我的网站以在页面加载后显示内容方面需要帮助
You might not have included the shops app in you main url.您可能没有在主 url 中包含商店应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.