Skip to content

Conversation

vhsantos
Copy link
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
Member

This one is for you @WhyNotHugo

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

Copy link
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
Contributor Author

Hi @WhyNotHugo

For curiosity, why you discourage it ?

@WhyNotHugo
Copy link
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
Contributor Author

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

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