下面是官方文档的内容,如果在urls.py中使用到正则匹配路径(^$)的时候,就需要使用re_path,而不能使用path,不然页面会显示404错误, 如果未用到正则,那么使用path即可. re_path()¶ re_path(route, view, kwargs=None, name=None)¶ Returns an element for inclusion in urlpatterns. For example: from django.urls import include, re
use v6; use Bailador; =begin pod 我们在路径设置上, 可以利正则表达式捕获的字符串作为子例程参数 =end pod get '/perl6/(.+)' => sub ($route) { "url : $route"; #这个(.+)全匹配/perl6下面的所有东西 #匹配到这个字符串时, 会把这个字符串作为参数传递给子例程 } get '/admin/(.+)/(.+)' => sub ($route1, $route2) { "
Path to data on disk In prior versions of Elasticsearch, the path.data directory included a folder for the cluster name, so that data was in a folder such as $DATA_DIR/$CLUSTER_NAME/nodes/$nodeOrdinal. In 5.0 the cluster name as a directory is deprec