![](/img/trans.png)
[英]Error Message: why i am getting "None" although i have add get() at views.py in Django ??? Can anyone help me
[英]can anyone help me, why I am getting food is not defined error ? I have attached the structure of Django module
您不需要添加from mysite import food
只需在單引號中添加path('', include('food.urls')
where food.urls
確保將food
應用添加到settings.py
INSTALLED_APPS列表中
首先在上面的文件中,您不需要添加from mysite import food並且在您的 url_patterns 中,第二個網址是這樣的:
path('',include('food.urls'))
只需添加一個單引號..
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.