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

Use namespaces for urls #725

Open
TyVik opened this issue Oct 14, 2021 · 5 comments
Open

Use namespaces for urls #725

TyVik opened this issue Oct 14, 2021 · 5 comments

Comments

@TyVik
Copy link
Owner

TyVik commented Oct 14, 2021

Refactor

    path('<name>/questions/', PuzzleQuestionView.as_view(), name='puzzle_questions'),

to

    path('puzzle/', include('puzzle.urls', namespace='puzzle')),
    path('<name>/questions/', PuzzleQuestionView.as_view(), name='questions'),
@aadityasinha-dotcom
Copy link

Can I work on this issue?

@TyVik
Copy link
Owner Author

TyVik commented Oct 15, 2021

yep, sure :)
it should be easy

@aadityasinha-dotcom
Copy link

aadityasinha-dotcom commented Oct 15, 2021

yep, sure :) it should be easy

Assign me please.

@TyVik TyVik assigned TyVik and aadityasinha-dotcom and unassigned TyVik Oct 15, 2021
@aadityasinha-dotcom
Copy link

@TyVik can you explain me a little bit.

@TyVik
Copy link
Owner Author

TyVik commented Oct 15, 2021

The main things - use https://docs.djangoproject.com/en/3.2/topics/http/urls/#url-namespaces.

I have 2 places for that - puzzle/ and quiz/ in https://github.com/TyVik/geopuzzle/blob/develop/mercator/urls.py#L39. Just:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants