On Nov 16, 9:49 pm, bfrederi <[EMAIL PROTECTED]> wrote: > I am currently working with a form persistent identifiers. As part of > the persistent system, users can add '?' to the end of the urls to > receive a data-only view of the digital object they are trying to link > to via the persistent identifier, such as this: > Normal view:http://ark.cdlib.org/ark:/13030/tf5p30086k > Specific data view:http://ark.cdlib.org/ark:/13030/tf5p30086k? > > When using Django, I've found that if I try to put a ? on the end of > my urls, it gets lost. It says there is no GET, and I can't seem to > differentiate whether there is a '?' on the end of the url or not with > any method I am familiar with in Django. Is there any way to get the > exact url that was requested ('?' and all)? So that way I know whether > they are wanting the normal view or the data view. The '?' is crucial > to the system, to keep things homogeneous with everyone else's objects > that use this persistent identifying system.
This is almost certainly because you have the APPEND_SLASH setting on, and Django is redirecting your /13030/tf5p30086k to /13030/tf5p30086k/ (appending a slash), in the process of which the GET settings are lost. Try using the URL with the slash already appended - /13030/ tf5p30086k/? -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---