Django 2.0 'name' is not a registered namespace

前端 未结 6 2442
别那么骄傲
别那么骄傲 2021-02-14 17:46

I\'ve seen this error posted several times, but I can\'t find anyone using Django 2.0 and having the problem.

The problem cropped up when I tried to nest one app inside

6条回答
  •  终归单人心
    2021-02-14 18:20

    Set users as the value of the namespace keyword argument of include method to set the appropriate application namespace:

    path('users/', include('users.urls', namespace='users'))
    

提交回复
热议问题