Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Solution #404

Closed
wants to merge 4 commits into from
Closed

Solution #404

wants to merge 4 commits into from

Conversation

YuliiaSaliuta
Copy link

No description provided.

Copy link

@Shatrovskyi Shatrovskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done!

cinema/urls.py Outdated
cinema_hall_detail,
name="cinemahall-detail",
),
path("", include(router.urls))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is overall better to put such general path at the beginning

cinema/urls.py Outdated
path(
"cinema_halls/<int:pk>/",
cinema_hall_detail,
name="cinemahall-detail",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you were trying to avoid -. But there is no such word as cinemahall. Try to come up with solution that will use cinema hall and also will not mix _ and -.

path("genres/", GenreList.as_view(), name="genre-list"),
path("genres/<int:pk>/", GenreDetail.as_view(), name="genre-detail"),
path("actors/", ActorList.as_view(), name="actor-list"),
path("actors/<int:pk>/", ActorDetail.as_view(), name="actor-detail"),
path(
"cinema_halls/",
cinema_hall_list,
name="cinemahall-list",
name="hall-list",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 😂😂

I meant something like cinema-hall. But let it be))

Copy link

@wQuelS wQuelS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The skill to avoid unnecessary tough decisions is pretty valuable. Nicely done

@YuliiaSaliuta YuliiaSaliuta closed this by deleting the head repository Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants