Skip to content

Improve doc about get_process_url.#435

Merged
WhyNotHugo merged 1 commit intojazzband:mainfrom
vhsantos:improve-doc-get_process_url
Mar 29, 2026
Merged

Improve doc about get_process_url.#435
WhyNotHugo merged 1 commit intojazzband:mainfrom
vhsantos:improve-doc-get_process_url

Conversation

@vhsantos
Copy link
Copy Markdown
Contributor

Description

This PR improves the Django Payments documentation by clarifying how to configure URL patterns when using the package inside a namespaced app. It adds a note explaining the need to override get_process_url to ensure proper URL resolution. Additionally, it includes an example of how to modify get_process_url to include the correct namespace.

Why This Matters

Without this clarification, users implementing django-payments within a namespaced app may encounter issues where the process_payment URL cannot be resolved.

Related Issue
Fixes #396

@mariofix
Copy link
Copy Markdown
Member

This one is for you @WhyNotHugo

I'm not sure if this is ours to resolve.

Copy link
Copy Markdown
Member

@WhyNotHugo WhyNotHugo left a comment

Choose a reason for hiding this comment

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

I'd strongly discourage this approach… but I guess the note is still valid.

@vhsantos
Copy link
Copy Markdown
Contributor Author

Hi @WhyNotHugo

For curiosity, why you discourage it ?

@WhyNotHugo
Copy link
Copy Markdown
Member

If we ever need to update the implementation of get_process_url, anyone overriding it would need to update their re-implemented version too.

Maybe we could introduce a setting a custom namespace can be specified, so users don't need to do this re-implementation at all.

@vhsantos
Copy link
Copy Markdown
Contributor Author

Make sense.. I will send a PR with the namespace settings as mentioned.

@WhyNotHugo WhyNotHugo force-pushed the improve-doc-get_process_url branch from f0a6b99 to fafe6ee Compare March 29, 2026 14:41
@WhyNotHugo WhyNotHugo merged commit fafe6ee into jazzband:main Mar 29, 2026
17 of 18 checks passed
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.

Reverse for 'process_payment' not found. 'process_payment' is not a valid view function or pattern name.

3 participants