[Django]-How to have separate urls for the same app in Django 1.9

4👍

You can import the module and pass the list of urls itself:

# settings app -- urls.py

from django.conf.urls import patterns, include, url
from records import urls as records_urls
from .views import *

urlpatterns = [
    # Records App Urls
    url(r'^(?P<player_id>\d+)/records/', include(records_urls.urlpatterns_types)),
]
👤knbk

Leave a comment