2009-7-1

22:48 NeoKeats
rastem: maybe serializing the objet with json... save it in session and deserialize it for the use
22:49 rastem
will think about it further thx guys
22:50 rastem
now the question is how to verify this stuff
22:50 rastem
after all, it's session data which is open to mussing by the user
22:51 christopher22
I created all the symbolic links.. but now it's telling me no module named django
22:51 rastem
chris22: the symlink must be named django :)
22:52 rastem
rather, it must reference that django folder
22:52 superdmp
I have an attribute: parent = models.ForeignKey('self') - why am I not allowed (in Meta) "order_with_respect_to = ['parent']?
22:52 superdmp
Django says crossly: django.db.models.fields.FieldDoesNotExist: Entity has no field named ['parent']
22:52 davidcramer
Whoever made django-paypal I love you
22:52 m1chael
christopher22, also.. make sure that the sym link isnt in some protected dir like /root .. i had that problem.. put the trunk somewhere that everyone has access to
22:53 benc1
is the django session cookie just a random string or the hash value of userid+something ?
22:53 zalun|w
22:54 christopher22
is this the code for the symbolic link?
22:54 christopher22
ln -s `pwd`/django-trunk/django /usr/local/lib/python2.6/site-packages/django
22:54 christopher22
should the symbolic link be created within a seperate folder called django ?
22:54 m1chael
christopher, where is your 'pwd' ?
22:55 m1chael
make sure you're in a directory that is readable/writable to everyone
22:55 m1chael
=)
22:55 m1chael
maybe not writable
22:56 NeoKeats
hum /usr/local/lib/python2.6/site-packages/
22:57 NeoKeats
christopher22: python2.6 doesn use site-package anymore
22:58 NeoKeats
christopher22: /usr/lib/python2.6/dist-packages/ on ubuntu for example
22:58 christopher22
well got it fixed.. and on Suse linux it's still /usr/local/lib/python2.6/site-packages
22:58 benc1
is the django session cookie just a random string or the hash value of userid+something ?
23:01 christopher22
apollo13, my apologies.. your code is runing perfectly in Django 1.1
23:01 insin
23:02 dual
Hi! I'm trying to do this: http://docs.djangoproject.com/en/dev/howto/stat... but when I try to access media files, I get "Page not found: /usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/whatever-im-looking-for.png"
23:02 dual
How can I fix that?
23:04 Waleed
Does anyone know, when Django 1.1 the official release will be? Is it gonna be months?
23:05 yacoob
Waleed, http://www.djangoproject.com/weblog/2009/may/07... pointed to a bug list, and there are still 3 bugs open. But I'm not that sure it's the only thing that is holding back a release.
23:05 rozwell
yes, those are the blocking bugs
23:05 efcjoe
dual: the code on that page is for serving your own static files, nothing to do with the admin media directory...
23:06 rozwell
when those are marked fixed, then a release candidate will be issued, followed by a release hopefully a week after
23:06 Waleed
Cool, thanks! I can't wait
23:06 yacoob
rozwell, tbh, the 'incorrect link' bug seems silly... :)
23:06 dual
efcjoe: I'm not trying to serve admin media files, but my own files.
23:06 rozwell
yacoob: what's silly about it?
23:07 yacoob
it sounds like it should be easy to solve. But I'd be guessing that if it was the case, it'd got fixed already.
23:07 rozwell
yacoob: no, it's actually been around for quite a while because it's quite subtle
23:07 efcjoe
dual: that's my point. 'django/contrib/admin/media/' shouldn't be involved at all
23:08 dual
efcjoe: I have no idea why it is. I've set "'document_root': '/home/olav/Prosjekter/Django/wop/media'" after the "django.views.static.serve"
23:10 benc1
insin: it looks like a way to generate a random string. I don't see the userid/password being used
23:11 rozwell
benc1: because it isn't
23:13 insin
23:13 insin
session keys are independent of auth, for good reason
23:15 efcjoe
dual: you're not trying to use the same path as ADMIN_MEDIA_PREFIX are you?
23:20 christopher22
why does the upload_to path not work in Django 1.1?
23:20 christopher22
worked perfectly in Django 1.0.2.. but now it's not storing the path anymore
23:21 benc1
insin: I don't understand the last link
23:21 benc1
insin: what should I look at
23:21 zalun|w
23:21 zalun|w
I receive __init__() got an unexpected keyword argument 'request'
23:21 zalun|w
in FileField.__init__()
23:22 zalun|w
I assume the question is from which model should inherit the AdminThumbnailImageFileWidget
23:25 zalun|w needs a little help with that admin stuff
23:41 Ianr
Is there any way to get the time it took to execute a query
23:42 philipsouth
23:45 Ianr
cool I'll have to try it
23:46 zalun|w
for anyone who took a look - it needs to remove the request from kwargs
23:47 zalun|w
23:52 NeoKeats
from time import time
23:52 NeoKeats
s = time()
23:52 NeoKeats
#your query
23:52 NeoKeats
23:52 NeoKeats
oops
23:52 diones
Hi all, I'm having trouble with the 4th part of the django tutorial
23:54 diones
after making my poll app work with generic views, the frontpage appears blank
23:55 diones
anyone knows what could be causing this?
23:55 aonweb
is there a way to access an individual element in a queryset in templates without looping?
23:59 jayzer
diones: that
23:59 jayzer
diones: that's quite generic
23:59 jayzer
experiment a little
Page 25 of 25   ← Previous  (2,473 total)