How do I force router urls to render multiple apps in the browser root view in Django REST Framework?

I have a Django project with five apps inside an app / folder like in the image

Every app inside apps / has a urls.py file in which I use Django-rest-framework routers to generate urls and along with view api in web browser with

So www.mysite.com/apps/appA -> shows a list of urls for appA www.mysite.com/apps/appB -> shows a list of urls for appB

How do I add a link to www.mysite.com/ - a link to the above pages?

thank

+3


source to share


1 answer


If I understand your question correctly, you need to create a urls.py for the apps folder that includes urls.py for each app within apps. Then, in your root urls.py projects, include urls.py in apps /. Please post your current urls if you don't understand.



0


source







All Articles