Mapping url from beginner to practice 18.3.1 in python programming

the original book uses the old version, but now the purchasing agent for routing from django to version 2.0 is different
the original urls.py is like this

from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [

]
url(r"^admin/", include(admin.site.urls)),
url(r"", include("learning_logs.urls", namespace="learning_logs")),

]

after changing it for a long time, it can"t be changed. Mine is django2.0, code like this:

from django.urls import path
from. Import views

urlpatterns = [

]
path(r"admin/", views.index),
path(r"/", "learning_logs.urls", namespace="learning_logs"),

]

Mar.23,2021

-sharp path(r'/', 'learning_logs.urls', namespace='learning_logs'),

from django.urls import path, include
path('/', include('learning_logs.urls', namespace='learning_logs')),
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d8b7-4da3e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d8b7-4da3e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?