我的项目名为homefood,当我运行server时,我得到了这个错误.任何人都有任何线索如何解决这个错误.
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/
Using the URLconf defined in homefood.urls, Django tried these URL patterns, in this order:
^foodPosts/
^admin/
The current URL, , didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
Run Code Online (Sandbox Code Playgroud)
我的settings.py文件看起来像这样......
import dj_database_url
"""
Django settings for homefood project.
# Build paths inside the project like this: …Run Code Online (Sandbox Code Playgroud)