为什么我的Django网址在Chrome上运行两次?由于url运行两次,因此我的视图被调用了两次,并导致了问题

时间:2020-03-28 10:38:28

标签: django-views

一旦我运行python manage.py runserver
使用StatReloader监视文件更改 正在执行系统检查...

System check identified no issues (0 silenced).
March 28, 2020 - 16:03:15
Django version 3.0.2, using settings 'WTL_Ecommerce.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[28/Mar/2020 16:03:19] "GET /home/ HTTP/1.1" 200 4092
[28/Mar/2020 16:03:19] "GET /home/ HTTP/1.1" 200 4092
[28/Mar/2020 16:03:22] "GET /product/4/ HTTP/1.1" 200 3325
[28/Mar/2020 16:03:22] "GET /product/4/ HTTP/1.1" 200 3325
[28/Mar/2020 16:03:27] "GET /mycart/ HTTP/1.1" 200 3040
[28/Mar/2020 16:03:27] "GET /mycart/ HTTP/1.1" 200 3040
[28/Mar/2020 16:03:31] "GET /home/ HTTP/1.1" 200 4092
[28/Mar/2020 16:03:31] "GET /home/ HTTP/1.1" 200 4092

0 个答案:

没有答案