| 79 | | and traverses the regular expressions. When it finds a regular expression that |
|---|
| 80 | | matches -- ``r'^polls/(?P<poll_id>\d+)/$'`` -- it loads the associated Python |
|---|
| 81 | | package/module: ``myproject.polls.views.polls.detail``. That corresponds to the |
|---|
| 82 | | function ``detail()`` in ``myproject/polls/views/polls.py``. Finally, it calls |
|---|
| 83 | | that ``detail()`` function like so:: |
|---|
| | 79 | and traverses the regular expressions in order. When it finds a regular |
|---|
| | 80 | expression that matches -- ``r'^polls/(?P<poll_id>\d+)/$'`` -- it loads the |
|---|
| | 81 | associated Python package/module: ``myproject.polls.views.polls.detail``. That |
|---|
| | 82 | corresponds to the function ``detail()`` in ``myproject/polls/views/polls.py``. |
|---|
| | 83 | Finally, it calls that ``detail()`` function like so:: |
|---|