slinkymanbyday / greatlemers-django-tools

Automatically exported from code.google.com/p/greatlemers-django-tools
0 stars 0 forks source link

URL resolving for menus fails if django site is not mounted at / #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start a django project that uses gdt_nav
2. Serve the project on a path that's not / (e.g. /gdt)
3. Try to load a page (e.g. /) that calls the menu.

Expected: Page should load, menu should work
Seen: Error - unable to resolve url trying gdt/ using ['^/$, ...]

The problem is that it's trying to resolve from the complete path rather than 
just the bit that django 
should be dealing with.

Original issue reported on code.google.com by greatlemer@gmail.com on 29 Mar 2010 at 9:43

GoogleCodeExporter commented 8 years ago
Using request.path_info instead of request.path solved this issue as path_info 
does not include the mount point 
part of the uri.

Original comment by greatlemer@gmail.com on 30 Mar 2010 at 9:54