2008-8-14

23:07 saltmind
is_superuser gives user all permissions without having to explicitly having to assign them.
23:09 kojiro
heh
23:09 kojiro
all that time, and it was so simple :(
23:13 karlsberg
is diferent this result ? {% ifnotequal value "" %} and id value is u''
23:13 Magus-
oh STOP ASKING THAT
23:13 Magus-
WE DO NOT KNOW
23:13 karlsberg
django tellme that not
23:13 karlsberg
then what dooo
23:13 Magus-
if it fails on that when value is u'' then obviously it doesn't work like that
23:13 Magus-
who the fuck knows, go try some stuff
23:13 Magus-
don't ask things you've already answered for yourself
23:13 Magus-
if it fails if fails
23:14 karlsberg
a veteran fix?
23:14 kojiro
heh
23:14 kojiro
that question could mean so many things
23:14 Magus-
if its truly failing on that, go file a bug and find some other way to do it
23:14 Magus-
er, not so much failing, but if it enters the first half, not the else, that's a bug
23:17 dtolj
Are there any convincing documents describing why one should use Django over other web frameworks?
23:17 mattmcc
Do there need to be?
23:18 mattmcc
Web frameworks, like any other tool, are often a fairly personal choice.
23:18 DigitalVibe
dtolj: i've tried around 6 different frameworks until i settled on Django
23:19 dtolj
But in terms of features ease of use and functionality/security how does one decide?
23:19 DigitalVibe
it is purely personal preference
23:19 izibi
dtolj: try it and you'll see why you should use it ;)
23:19 mattmcc
dtolj: One tries out the options one is considering.
23:19 Adoleo
dtolj: Same here - I think the best way to try is to go through the basic tutorial for each one.
23:19 dtolj
there are so many out there i am particularly looking between Django and Rails
23:19 DigitalVibe
dtolj: you just have to try them and see which you feel most comfortable with.
23:19 mattmcc
Because really, at the end of the day they all have sufficiently similar feature sets to all let you do the same task fairly easily. Just in different ways.
23:20 kojiro
either you pick one and work on it until you like it, or you pick both, and start leaning toward the one you like.
23:20 dtolj
i see,
23:20 DigitalVibe
Adoleo: dtolj: all i can say is, try them both for a few weeks and see which you're happiest with. i chose Django because the Python language enforces well formatted code.
23:20 kojiro
For my lights, I like python more than ruby, and that's all I need.
23:20 kojiro
pure bias, plain and simple :)
23:21 dtolj
do you guys use Django more because of Python language or other features you like in that framework?
23:21 mattmcc
Yes.
23:21 kojiro
hahaha
23:22 kojiro
win
23:22 DigitalVibe
dtolj: i've chosen django because i like python
23:22 SmileyChris
you could always try zope3 then
23:22 dtolj
so its really a comparison between Python and Ruby programming languages
23:22 p--
Django isn't the only python framework.. but it is the best imho :)
23:22 SmileyChris
but i'm still trying to wrap my head around it :P
23:22 DigitalVibe
i'd choose ruby for all the masses on "plug-in" components
23:22 kojiro
ugh, zope makes me sad. I tried so hard to like it :(
23:22 Adoleo
dtolj: Again - same here. I love Python, and found that Django made more sense to me than TurboGearas
23:23 SmileyChris
dtolj: having great documentation is also a big plus
23:23 kojiro
SmileyChris: do you find rails lacking in documentation?
23:24 DigitalVibe
i would say RoR has a bigger userbase, but i can see more people moving to django when we reach v1.0
23:24 kojiro
I would have guessed they're pretty flush there
23:24 dtolj
and a great community :)
23:24 SmileyChris
kojiro: didn't mean to compare the two - just putting out a good feature of Django
23:24 kojiro
ah, ok
23:24 SmileyChris
can't say i've done much rails work past just a basic tute to try it out (a long time ago)
23:24 DigitalVibe
indeed. i always felt like the RoR community wanted to protect teh secrets and not let me into their group
23:25 mattmcc
Are you sure you weren't using the Scientology framework?
23:25 SmileyChris
import RonHubbard
23:25 DigitalVibe
plus, it has a stupidly massive project structure
23:25 kojiro
I demand that any framework I use have users who laugh at my jokes
23:25 farastray
RoR is nice but we had a hell of a time porting functionality between one project and another.. Thats what I like about django
23:25 DigitalVibe
mattmcc: nope, they kept that one a secret too!
23:26 SmileyChris
raise ExcessiveThetanLevel
23:27 DigitalVibe
i do like our community and the level of support in both the tutes adn the channel
23:28 FunkyBob
morning, davidcramer
23:28 FunkyBob
DigitalVibe: and it does have that "community" feel
23:29 DigitalVibe
FunkyBob: it certainly does. i'd have ditched learning Django if the community was poor - it's you guys that've helped me learn
23:30 kojiro
"There's something about python"
23:30 kojiro
I don't think I've met a python developer I didn't like.
23:30 andre_pl
if i {% load mytpltags %} in they are not automatically inherited by pages which extend base.html? is this correct?
23:30 SmileyChris
andre_pl: that's correct
23:30 SmileyChris
andre_pl: correct that they are not :P
23:30 shadfc
anyone care to help debug a custom filestorage backend problem (S3)? FileFields work great all th way around, but no ImageFields are processed correctly. At least, I cannot retreive and view any images from S3. Not sure how to start on this
23:31 farastray
thats because you meet so few of them :p
23:31 andre_pl
SmileyChris: kind of a nuissance, is there no way to load them everywhere?
23:31 kojiro
farastray: t3h hahaz
23:32 savid
What generally causes this type of error?? "django.contrib.admin.sites.AlreadyRegistered: The mode Category is already registered"
23:33 DigitalVibe
shadfc: i've never touched S3, but you are doing image.url on the imagefield, yes?
23:33 dexter
anyone know why my models aren't appearing in the admin, but i can access them in the shell?
23:33 Magus-
registering in models.py instead of admin.py, savid
23:33 Magus-
dexter: following old admin directions instead of new?
23:33 DigitalVibe
shadfc: as in, FileField uses .get_image_url, where as ImageField uses image.url
23:33 dexter
this is a new project based on the latest source code
23:34 FunkyBob
FINALLY!
23:34 shadfc
DigitalVibe: the images themselves seem to get corrupted between admin and S3. I can upload, and it says it worked. And then I view/download the image from S3, and its not a valid image.
23:34 Magus-
dexter: so you're not using the inner admin class, but instead modeladmin classes and admin.site.register or whatever?
23:34 wmealing cheers
23:34 FunkyBob
Have I mentioned how much I hate SQL? :)
23:34 wmealing
yes
23:34 FunkyBob
wmealing!
23:34 wmealing
it is me !
23:34 shadfc
DigitalVibe: however, using the regular filesystemstorage backend, everything is great
23:34 SmileyChris
andre_pl: technically you could use django.template add_to_builtins
23:34 wmealing
FunkyBob: i'm going to write an app for the appstore, serverside django clientside objc
23:34 savid
Magus-, hmm at this point, I don't have admin.py set up yet (just playing around w/ models right now). I'm thinking it's an issue with mptt (since it only occurs on my mptt models).
23:35 FunkyBob
wmealing: ooh
23:35 wmealing
now to learn objc
23:35 dexter
magus: sorry you lost me
23:35 wmealing
i mean, how hard can it be.. adobe does it.
23:35 Magus-
dexter: how are you telling admin to show your models?
23:35 DigitalVibe
shadfc: i can't help i'm afraid :(
Page 31 of 32   ← Previous  Next →(3,174 total)