Skip to content

Package URLs should override core URLs?

Currently, DjangoLDP appends the URLs for Model subclasses, and then appends the URLs for installed packages: https://git.startinblox.com/djangoldp-packages/djangoldp/blob/master/djangoldp/urls.py#L50

For Étuc I was creating a custom url in my djangoldp_urls.py file, like this: /polls/(?P<pk>[0-9]+)/total_votes/. I find that I'm not able to reach this URL because /polls/(?P<pk>[0-9]+)/ has already been registered under DjangoLDP, which Django matches first

Is there a reason for this ordering, or should it be refactored so that package URLs are registered, and then those of Model subclasses? @balessan @jbpasquier