原文:Django錯誤:?: (2_0.W001) Your URL pattern '^user/' has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().

Django . 后urls的配置發生了改變: 轉載自:https: blog.csdn.net SilentWu article details 解決方案: 把url函數換成path 不適用 , 作路由 eg: . 以前版本: . 以后版本 ...

2020-03-14 15:06 0 1885 推薦指數:

查看詳情

Django 4.0 from django.conf.urls import url

url 已在Django 4.0中刪除。請查看此處的發行說明: https://docs.djangoproject.com/pl/4.0/releases/4.0/#features-removed-in-4-0 django.conf.urls.url() is removed. ...

Sun Jan 30 00:01:00 CST 2022 0 2108
cannot import name 'path' from django.urls

django版本問題,需要將版本升級到2.0 pip install --upgrade django https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python pip install mysqlclient報錯 ...

Wed May 22 08:05:00 CST 2019 0 1159
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM