Thanks for your replies --I am still stuck here.

>Have a look in the output from the development server - I very much doubt that 
>the click results in any request being sent.

A request is definitely sent for each of these cases: "/doc/", "/
doc#", "/doc#1/".  I can see each of these generating a hit on the
local dev server standard out.

I think this is a URL mapping mapping .

My url.py is:

(r'^doc/', 'doc.views.get_sections'),

Using the above, all of the following URLS map to the same
'doc.views.get_sections' view:
  http://localhost:8000/doc/
  http://localhost:8000/doc#1
  http://localhost:8000/doc#1/

I am not sure what I need to do to either my url mappings or in my
view to handle the  "#<n>" ?
What is the way to get local links working?


On Dec 5, 11:02 am, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Dec 5, 6:04 pm, PFL <[EMAIL PROTECTED]> wrote:
>
> > The source generated by the templates is indeed correct; it looks
> > like:
>
> > <a href="#1">Section1</a>
>
> > However,  when I click on the link, Django(?) tries to resolve it as:
>
> >http://localhost:8000/doc/#1 -- not ---http://localhost:8000/doc#1
>
> > So -- how do I get local links working with Django?
>
> Django isn't doing anything. Have a look in the output from the
> development server - I very much doubt that the click results in any
> request being sent.
>
> The address of the page is indeed /doc/, not /doc, so it's correct
> that the local anchor would be /doc/#1.
> -
> DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to