Opened 19 years ago

Last modified 17 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 Adrian Holovaty)

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 Adrian Holovaty, 19 years ago

Description: modified (diff)
Summary: urlpatterns, incldue and app_rootGive views access to application root from urlconf
Note: See TracTickets for help on using tickets.
Back to Top