Opened 20 years ago
Last modified 18 years ago
#66 closed defect
Give views access to application root from urlconf — at Version 1
| Reported by: | slashzero | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Design decision needed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
When using include with urlpatterns, there should be a variable available to the views that will give us the root of the application. For instance, for:
(r'^polls/', include('myproject.apps.polls.urls.polls')),
...it would be "/polls/".
Change History (1)
comment:1 by , 20 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | urlpatterns, incldue and app_root → Give views access to application root from urlconf |
Note:
See TracTickets
for help on using tickets.