Open SeokRae opened 4 years ago
urlpatterns = [path("/1", views.room_detail, name="detail")]
File "C:\Users\kslbs\Documents\airbnb-clone\rooms\urls.py", line 6, in urlpatterns = [path("/1", views.room_detail, name="detail")] AttributeError: module 'rooms.views' has no attribute 'room_detail'
어떻게 강의는 views에서 바로 room_detail 함수로 바로 접근이 되는 걸까? urlpatterns = [path("/1", views.HomeView.room_detail, name="detail")]
indentation fixed
https://github.com/SeokRae/python_airbnb-clone/blob/38fe7ae8e25158413ee8341880764756887c903b/rooms/views.py#L23
https://github.com/SeokRae/python_airbnb-clone/blob/master/rooms/views.py#L23
urlpatterns = [path("/1", views.room_detail, name="detail")]
File "C:\Users\kslbs\Documents\airbnb-clone\rooms\urls.py", line 6, in
urlpatterns = [path("/1", views.room_detail, name="detail")]
AttributeError: module 'rooms.views' has no attribute 'room_detail'