sessions work on mod_wsgi and not on builtin server

39 views
Skip to first unread message

Klerik

unread,
Mar 10, 2012, 2:20:04 PM3/10/12
to web.py
Hi guys,

I have my blog in webpy on adress http://klerik.cz and works great, I
use apache with mod_wsgi.
Now after one maybe two years I download the code and try something
add and I have one problem with sessions. On my server with mod_wsgi
all works great, but whet I try builtin server on localhost, I can not
login to administration. I think the problem is in the sessions and
buildin server dont give me any error message, only the same login
form. I use this code:

http://paste.kde.org/436790/

Have anyone some idea?

Thanks for any answer

PS: when I develop the blog, I use version 0.34, now on localhost and
on my server with mod_wsgi I use 0.36. And sorry for my bad english.

Dragan Espenschied

unread,
Mar 10, 2012, 2:48:49 PM3/10/12
to we...@googlegroups.com
This might be a case of the sessions not working in debugging mode:
http://webpy.org/cookbook/session_with_reloader

I really wish webpy would handle this transparently. What use is debugging mode
if sessions cannot be debugged?

--
http://noobz.cc/
http://digitalfolklore.org/
http://contemporary-home-computing.org/1tb/

Oscar

unread,
Mar 10, 2012, 2:51:53 PM3/10/12
to we...@googlegroups.com
As far as I know it's only web debug, you can still debug from the wsgi log files. At least I can using uwsgi-python.

Klerik

unread,
Mar 10, 2012, 4:52:44 PM3/10/12
to we...@googlegroups.com
Thanks for answer, but setting "web.config.debug = False" I tryed first
and this setting dont have effect to my problem.

On Sat, 10 Mar 2012 20:48:49 +0100, Dragan Espenschied <d...@a-blast.org>
wrote:


--
Klerik

Klerik

unread,
Mar 10, 2012, 5:04:45 PM3/10/12
to we...@googlegroups.com
Oh, thanks to Dragan, thanks to you I got the idea. I had set it in the
wrong place, I moved it just under the "import web" and now it works
without problems. So resolved, thanks very much and sorry for my mistique.
Reply all
Reply to author
Forward
0 new messages