Django Project: namespace 'admin' isn't unique

前端 未结 3 1557
时光取名叫无心
时光取名叫无心 2021-01-22 15:40

on trying to run C:\\Python34/python manage.py makemigrations, I get the following error:

Error

WARNINGS: ?: (urls.w005) URL namespace \         


        
3条回答
  •  囚心锁ツ
    2021-01-22 15:48

    You are declaring

    path('admin/', admin.site.urls),
    

    three times in your urls files. You just have to declare it once in the root urls.py of your project.

提交回复
热议问题