7、Django:‘Specifying a namespace in include() without providing an app_name ‘

'Specifying a namespace in include() without providing an app_name ’

1. Error situation
Insert picture description here
Insert picture description here
2. Solution

As can be seen from the include() function, this function has two parameters, an arg and a namespace. We did not provide app_name, and we need to pass in a two-tuple, so we modify the code here:
Insert picture description here
I hope to help you, thanks Your support!

Guess you like

Origin blog.csdn.net/Erudite_x/article/details/115049067