Questions tagged [nested-urls]

This tag refers to URLs which contain one or more smaller URLs within them.

Use this tag for questions related to working with nested URLs (i.e. extracting them, embedding them, etc.).

9 questions
3
votes
1 answer

Iterate through url using strings - python

I'm completely stuck with my code right now. First of all I try to retrieve all urls from a archive page of the volkskrant. This is the first step were I got struck. The url of one specific date looks as following:…
Saarie
  • 31
  • 1
3
votes
3 answers

MVC:RESTful routing with nested urls, when entities are not really nested

I 'm really having a hard time with the RESTful paradigm + nested urls. I have asked a question that lead me to where I am right now here. My Domain is roughly this: there are schools, courses of a school and teachers of schools. Now schools,…
thanos panousis
  • 464
  • 6
  • 17
2
votes
2 answers

Nested Routes and Parameters for Rails URLs (Best Practice)

I have a decent understanding of RESTful urls and all the theory behind not nesting urls, but I'm still not quite sure how this looks in an enterprise application, like something like Amazon, StackOverflow, or Google... Google has urls like…
Lance
  • 75,200
  • 93
  • 289
  • 503
1
vote
0 answers

How to map a patch method over an action with detail=False in Django Rest Framework

I am building an API with Django and Django Rest Framework I have the following endpoint: host/products/ pointing to a ModelViewSet, so I have a CRUD working for the specified model. Also, I define an extra action for a nested model called config…
1
vote
1 answer

React-Router: Nested route not rendering component

This is a simplified reproduction of the problem: The child with the nested URL does not render. My file structure is basically this: -App --Home --Pageone ---Childone I can render Home or Pageone from App, then I can render Home or Pageone…
Mush-A
  • 435
  • 3
  • 11
1
vote
0 answers

DRF nested routers could not resolve URL for hyperlinked relationship

I am trying to use drf-nested-routers to create a nested url pattern like the following: /projects/{project_pk}/join_request/{pk} With my current setup, I am able to navigate to /projects successfully, and see the list of hyperlinked…
1
vote
1 answer

Django REST Framework Extension recursive nested urls

I want to create URLs for CMS portion of project I have following models class Category(models.Model): name = models.CharField(max_length=150) parent = models.ForeignKey('self', blank=True, null=True) class Page(models.Model): title =…
Ubaid
  • 431
  • 4
  • 14
1
vote
2 answers

Right way to catch slug1/slug2/slug3 page with Regex?

I am trying to use this Re-pattern r'\({2}.+?\){2}' to catch a ((slug1/slug2/slug3 someword)) expression from text. It gives me the whole expression itself,i.e '((slug1/slug2/slug3 someword))'. Then I parse it using Python:split it to get…
Swordfish
  • 181
  • 1
  • 5
0
votes
2 answers

Assign pk form URL to model's related field

I would like to use the "nested" url /customers//orders to create new orders using POST. I would like to get the related order's customer_id based on the request's url . Order model has a customer = ForgeinKey(Customer,..) field that relates…
Charalamm
  • 1,547
  • 1
  • 11
  • 27