2008-3-23

22:50 Magus-
session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None)
22:50 Magus-
from the sessions middleware
22:51 frimjon
Useful, useful Middleware.
22:51 frimjon
Thanks a lot Magus- :-)
22:52 Zalamander
alternately, you could simply store the IP in the session
22:53 Zalamander
is request.COOKIES.get(settings.SESSION_COOKIE_NAME) the same as request.session.session_key?
22:53 Magus-
if that's a valid attribute, probably - I didn't see it in my tests
22:53 Magus-
but I did just realize I forgot to check dir()
22:53 Zalamander
hm, it shows up in dir(session)
22:54 Zalamander
I suppose storing the ip address in the session doesn't add it to the database in a very useful way, from an rmdb perspective
23:20 Alex_Gaynor
Is anyone here using webfaction?
23:22 dcramer[]
pg gurus want to walk me through a few things?
23:23 dcramer[]
im trying to convert tables from mysql
23:23 dcramer[]
and have no clue wtf im doing
23:24 dkfowler
are django sessions also supposed to hold the auth_user? I'm caching my sessions but its still doing a db lookup for the user
23:24 dcramer[]
no they aren't
23:24 dkfowler
dcramer: thanks
23:43 thebitguru
something weird is going on. My database shows all the columns populated, but shell isn't showing any data other than the model's id. Does anyone know why this might be?
23:43 Magus-
did you query the object after the data was inserted or before?
23:43 thebitguru
after
23:44 Magus-
mysql?
23:44 thebitguru
I have tried restarting the shell several times with no luck
23:44 thebitguru
postgres
23:44 Magus-
hmm
23:44 Magus- shrugs
23:44 thebitguru
the admin side shows the data fine
23:46 thebitguru
weird, if I do 'from nodes import models' and models.ContentNode.objects.get(pk=5) then it doesn't show the other fields, but if I do 'from nodes.models import *' then it works fine.. :_/
23:50 Juanjo-sfe
hi u all
Page 22 of 22   ← Previous  (2,128 total)