Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

me_app의 urls.py를 따로 분리해주세요. #4

Open
shinkeonkim opened this issue Jun 19, 2021 · 0 comments
Open

me_app의 urls.py를 따로 분리해주세요. #4

shinkeonkim opened this issue Jun 19, 2021 · 0 comments

Comments

@shinkeonkim
Copy link
Member

path('join/', views.join, name='join'),
path('mypage/', views.mypage, name='mypage'),
path('list/', views.list, name='list'),
path('new/',views.new,name='new'),
path('create/', views.create,name='create'),
path('<str:id>', views.detail, name='detail'),
path('idea/<int:idea_id>/comment/', views.add_comment_to_idea, name='add_comment_to_idea'),

accounts와 같이 me_app 폴더에 urls.py를 만들고 me_project 폴더의 urls.py에서 include 하는 방식이 더 자연스러울 것 같습니다.
그리고 코드의 가독성도 더 좋아질 것 같아요. 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant