0

I'm trying to send a URL to an external website as a callback and I'm wondering if there is a way to pass the URL name from urlpatterns and required arguments.

The solution would return the full path of the URL as a string instead of hardcoding it.

The URL in urls.py looks something like this:

app_name = example_app urlpatterns = [ ... '<int:example_id>/, views.my_function, name='some_name' ] 

And I would like the URL to be something like this, where 1 is an example_id:

 https://my_site_domain.com/example/1/ 
2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.