1

The common url syntax for Django application is as following

url(URL_PATTERN, VIEW_ACTION, NAME)

Since I declared my urls I want to get the list of my urls using some sort this urls = get_urls(application) and get the output as a list of urls, I also found the same function used in Django admin application, but I couldn't figure it out.

Is there any built in functions to get this done?

Sultan

1 Answer 1

1

You could reuse the code used by django-extensions show_urls() command.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.