It has to be a HEAD request.

On 10/30/06, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> I found the bookmarklets in the admin doc pages and thought this would
> be a useful thing for our teams to use.  As a quick test I used curl -i
> URL to see if the headers are set and they aren't.  I told curl to use
> my current Firefox cookies (-b flag) and they still weren't there.  So
> I set up the INTERNAL_IPS setting and still not there.
>
> I tested another Django app that has a more straight forward model and
> I see the headers.
>
> For some reason I can't get the headers to show on this particular app.
>  The one that did work used generic views.  The one that doesn't uses a
> custom view but essentially maps a URL to a single object.  Is there
> anything special one has to do in the view to get this to work?
>
> It is in my middleware classes:
>
> MIDDLEWARE_CLASSES = (
>     'django.middleware.common.CommonMiddleware',
>     'django.contrib.sessions.middleware.SessionMiddleware',
>     'django.contrib.auth.middleware.AuthenticationMiddleware',
>     'django.middleware.doc.XViewMiddleware',
> )
>
> Thanks,
> Rob
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to