latest 100 | #django

July 6th, 2008

13:47 babo
anyone ?
13:47 babo
what does the DecimalField correspond to ?
13:52 kimus
hi, there is something wrong with the named urls. in my laptop urls are OK if I deploy it does not work
13:56 iggy
kimus: watch for relative includes/paths when deploying
13:56 kimus
iggy: what you mean about relative includes/paths ?
13:56 iggy
honestly... I don't really know
13:57 iggy
I just remember something with relative paths bit me when I switched from the dev server to a production set up
13:58 iggy
and I've seen a number of others in here have the same problem
13:58 kimus
iggy: i'm talking about URL templatetag with URL naming not working
13:59 kimus
the {{% url bla %}} templatetag
14:00 iggy
well, I had a lot of stuff not working, so if that's your only problem, they may be unrelated
14:00 iggy
it was just the switch from dev to production that raised that flag for me
14:08 babo
my error message get output like this ...
14:08 babo
*** T, h, a, t, , u, s, e, r, n, a, m, e, , i, s, , t, a, k, e, n,
14:08 babo
I need to wrap something in []
14:08 babo
what do i need to wrap again ?
14:10 babo
is anyone at home today ?
14:11 babo
think i got it
14:16 slav0nic
anybody know django based blog system for many users?
14:29 [530]
slav0nic: pinax perhaps
14:39 praetorian
/z 23
14:42 saltmind
has anyone else noticed that django/bin/make-messages.py has been moved to django-admin.py, but django-admin.py doesn't understand "makemessages?"
14:46 maiKaahl
nope
14:47 zerok
saltmind, multiple django installations? ;-)
14:50 saltmind
zerok: yeah, I've got 3 projects and 1 of them is using an old #2070 patched django - I'm just going to back it up and see what happens.
14:50 DjangoBot
14:50 zerok
saltmind, ah :-)
14:51 maiKaahl
anyone know of a good irc channel for web security issues?
14:52 saltmind
maiKaahl: you've got to figure that most people here would know something about it.
14:53 maiKaahl
okay then, sometimes i see people saying "not on topic" for these kind of requests.
14:53 maiKaahl
im after some kind of multi-lingual database of weak passwords
14:54 maiKaahl
kinda like a rainbow table, but obviously not as big
14:56 maiKaahl
saltmind: any idea?
14:59 saltmind
maiKaahl: I'm sure I read about something like that on reddit, but I can't remember the link
14:59 maiKaahl
saltmind:i found something on digg, but the linked site got to much traffic so the owner took it down
15:01 maiKaahl
saltmind: i can think of a few algorithms that may ensure a good password, but i cant really take into account other languages
15:02 maiKaahl
something like 8 different characters, at least 1 number that wasnt at the end or beginning
15:03 maiKaahl
but that doesnt really take into account "1337" words eg p455w0rd
15:04 saltmind
maiKaahl: why would you want something like this?
15:04 maiKaahl
to ensure really strong passwords
15:04 Neo--
guys, is there some other way to get sql 'group by' functionality in pyton without manually rewritting all my queries into costum sql?
15:05 Neo--
i would need group by at a rather high level in my project, and since there's no way to convert costum sql to queryset object, i would have to rewrite a lot of code
15:06 maiKaahl
<-- general noob so i cant off much help, sorry Neo
15:07 maiKaahl
saltmind: hmmm.... i might be trying to brute force the issue when ive missed a smarter method
15:08 neanton
hello everyone. i have a problem: http://dpaste.com/60992/ for this model in admin interface i see html tags in text field.. whats wrong with my code?
15:09 maiKaahl
saltmind: a smarter login...
15:09 maiKaahl
neanton: i dont know, but i can tell you whats wrong with your paste. choose a color formatting.
15:10 maiKaahl
15:10 maiKaahl
:S
15:10 neanton
15:10 neanton
;)
15:11 neanton
so why even if i set text.allow_tags = True i see <li>hello<li> in admin?
15:11 maiKaahl
the 992 is showing me a color formatted one, but i know its the same link as the one without... :S
15:12 maiKaahl
odd
15:15 neanton
in database the data is ok, but when outputs it is escaped ..
15:16 [530]
neanton: text is a field?
15:17 neanton
sure. its tinymce editor, as described in http://code.djangoproject.com/wiki/AddWYSIWYGEd...
15:17 [530]
oh, the contents of the textfield
15:18 [530]
that is not affected by allow tags
15:18 [530]
just has to do with list_display
15:19 neanton
[530], so whats the solution?
15:19 neanton
here is my model http://dpaste.com/60993/
15:19 moos3
does anyone see anything wrong with this http://dpaste.com/60995/ i'm trying to figure out where in my code its losing the filename
15:21 sorl-
neanton, everything is automatically escaped from db in trunk
15:21 neanton
sorl-, i added text.allow_tags = True
15:21 neanton
this should turn off escaping, isnt it?
15:22 sorl-
neanton, sorry where do you see the escaping?
15:22 [530]
neanton: make a custom TextField field
15:22 [530]
15:22 neanton
sorl-, when listing news in admin
15:23 sorl-
neanton, does your __unicode__ output html?
15:24 neanton
sorl-, it outputs <p>test</p>
15:25 neanton
so still escapes data ;(
15:25 sorl-
that is from your title field?
15:25 [530]
15:26 sorl-
neanton, yes listen to [530] :)
15:27 sorl-
still... listing a field containing html... isnt what most people want
15:27 neanton
sorl-, [530], thanks! this works
15:27 sorl-
id probably stip tags in that display_text and maybe truncating it to some words length
15:28 neanton
sorl-, i'll try.. just wanted to show news without messy html tags in admin
15:32 moos3
are these been built-in to django trunk or have these been replaced http://code.djangoproject.com/wiki/CustomUpload...
15:34 sorl-
moos3, that looks quite outdated, what is it you want to accomplish?
15:35 neanton
whats the method to substr a part of a string?
15:35 sorl-
neanton, string[from:to]
15:35 neanton
thanks!)
15:36 nside
is anyone experienced with pyamf? i'm wondering how to test my django gateway
15:36 pytholic
hello folks
15:36 pytholic
anyone knows, what's going wrong with django-tagging there -> http://pastebin.com/m55306eb5 ?
15:37 sorl-
pytholic, tagging is in INSTALLED_APPS but not in path
15:38 pytholic
sorl-, look at the middle two highlights
15:38 pytholic
that would not work too, if it was not on the path
15:40 Ptronico
any brazilians here?
15:40 sorl-
pytholic, is tagging available where you said it to be in INSTALLED_APPS?
15:40 pytholic
yep
15:43 sorl-
pytholic, you did import tagging in blog/models.py?
15:43 pytholic
yep
15:43 pytholic
it's working on localhost but the productive box does not like it
15:44 pytholic
i'll dive into it again
15:45 neanton
if i use django's default caching for pages, and for example i add new news item, the cache will be rewritten with new value, or it will be rewritten only then cache expire time reaches?
15:49 pytholic
narf, my fault, had to checkout svn
Page 1 of 3,573   1  2  3  4  ...  3570  3571  3572  3573  Next →(357,297 total)