Written by
django-style
on
on
in include() without providing an app_name ' django.core.exceptions...
in include() without providing an app_name ' django.core.exceptions...
# config.urls.py urlpatterns = [ path("admin/", admin.site.urls), path("", include("core.urls", namespace="core")), path("rooms/", include("rooms.urls", namespace="rooms")), ]
# rooms.urls.py from django.urls import path from . import views # 요놈 중요 namespace = "rooms" 이거랑 같아야함 app_name = "rooms" urlpatterns = [ path("/", views.room_detail, name='detail') ]
namespace = "rooms" 와
app_name = "rooms"가 같아야한다
from http://insubkim.tistory.com/149 by ccl(A) rewrite - 2021-12-14 00:26:35