As an example:
view.py
def view1( request ):
return HttpResponse( \"just a test...\" )
urls.py
urlpatterns = patter
Universal approach
install Django extensions and add it to INSTALLED_APPS
Generate a text file with all URLs with corresponding view functions
./manage.py show_urls --format pretty-json --settings=
like
./manage.py show_urls --format pretty-json --settings=settings2.testing > urls.txt
urls.txt
{
"url": "/v3/blockdocuments//",
"module": "api.views.ganeditor.BlockDocumentViewSet",
"name": "block-documents-detail",
},