List Info

Thread: Flup + login problems; partly solved




Flup + login problems; partly solved
user name
2006-11-23 13:05:05
Ha!
I found something -- login form at page
"/private/" is ugly, <input> 
items haven't set attributes like "name",
"type", etc...

So this problem isn't related to authentification, it is my
fault.

But I am still interested, why I get Flup error page instead
of Django 
debug screen (I have set variable DEBUG=True).


Regards
Michal

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Flup + login problems; partly solved
user name
2006-11-23 14:59:35
Michal wrote:
> Ha!
> I found something -- login form at page
"/private/" is ugly, <input> 
> items haven't set attributes like "name",
"type", etc...

And because of this a browser didn't send any content with
the form and 
didn't set an HTTP header responsible for this --
Content-Length. Flup

> But I am still interested, why I get Flup error page
instead of Django 
> debug screen (I have set variable DEBUG=True).

It's not flup, the error occurred in Django handler, look at
the last 
part of your traceback:

"/usr/local/lib/python2.4/site-packages/django/core/han
dlers/wsgi.py",
line 160, in _get_raw_post_data content_length =
int(self.environ['CONTENT_LENGTH']) KeyError:
'CONTENT_LENGTH'

The error wasn't in pretty format because this is a very
early part of 
Django code that constructs a request object and all this
happens before 
the handling part that is wrapped into try..except that
prettifies errors.

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )