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 #473

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

solution #473

wants to merge 5 commits into from

Conversation

roffi37
Copy link

@roffi37 roffi37 commented Nov 16, 2023

No description provided.

@roffi37
Copy link
Author

roffi37 commented Nov 16, 2023

image
image
image
image

Copy link

@fedorov-s-od fedorov-s-od left a comment

Choose a reason for hiding this comment

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

Nice job! )

accounts/urls.py Outdated

Choose a reason for hiding this comment

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

No need to create an app here, you have urls from django.contrib.auth.urls (taxi_service/urls.py 25th line)

@@ -22,4 +22,5 @@
urlpatterns = [
path("admin/", admin.site.urls),
path("", include("taxi.urls", namespace="taxi")),
path("accounts/", include("django.contrib.auth.urls"))

Choose a reason for hiding this comment

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

it was about whole accounts app
you have login/logout urls from django.contrib.auth.urls, haven't you?

@@ -22,4 +22,5 @@
urlpatterns = [
path("admin/", admin.site.urls),
path("", include("taxi.urls", namespace="taxi")),
path("", include("django.contrib.auth.urls"))

Choose a reason for hiding this comment

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

This line includes Django's built-in authentication URLs (like login, logout, password change, etc.)
You can also have path("accounts/", include("django.contrib.auth.urls")) here

But again, why do you need accounts app here, if you have all urls in this file? You can remove accounts app

Copy link

@LiudmylaKulinchenko LiudmylaKulinchenko left a comment

Choose a reason for hiding this comment

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

Great! 🌷

Copy link

@fsocie7y fsocie7y left a comment

Choose a reason for hiding this comment

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

Good job 🥇

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.

4 participants