On Nov 16, 11:56 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> 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.
I don't think this is the answer to this problem...
Is there a way to tell if there is a single question mark at the end
of a url given to django?
Is there a way to have access to exactly the url used for the request?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---