2008-8-29

23:31 Magus-
they are not magically added to your project's urlconf
23:32 Jacolyte
jesus -.-
23:32 Honeyman
Got "__init__() got an unexpected keyword argument 'validator_list'" on every model where the fields are using validator_list, after svn upgraded to the latest trunk. Or is it just me?...
23:33 Magus-
Honeyman: please remember to read the backwards incompatible changes list when updating
23:33 Magus-
you'ds ee that yes, it was removed
23:33 Honeyman
Uh-huh, I remember some ticket...
23:33 Jacolyte
from photologue import urls?
23:33 Magus-
Jacolyte: of course not
23:33 Magus-
how do you do other includes of urls?
23:34 Magus-
like in the bloody tutorial even
23:34 nick125
Jacolyte: You include it just like any other urls.py
23:34 Magus-
its not a python import
23:34 Jacolyte
well, enlighten me please.
23:34 Honeyman
some guy way working on the model-level validators, but that's gonna be after 1.0, right?
23:34 Magus-
Jacolyte: ... remember include() ?
23:34 Magus-
right there in urls...
23:34 Magus-
Honeyman: yes, they pulled out the old crap so that you're no longer defining form validation in models
23:34 Magus-
especially since newforms didn't use it
23:34 Magus-
neither did models
23:34 Jacolyte
what am I mapping it to? the readme doesn't say.
23:34 Jacolyte
lol
23:35 Magus- sighs
23:35 Magus-
exact same format as anything else
23:35 Magus-
include('appname.urls') if its on pythonpath, or include('project.app.urls') if its in your project
23:35 Magus-
readme or not, this should be UNDERSTOOD
23:35 Magus-
photologue doesn't change how django works on this stuff
23:36 Jacolyte
not working
23:36 nua
hey all, how do I stop django from escaping the html in a variable in a template?
23:36 Jacolyte
same error
23:36 mattmcc
nua: The templates docs list the 'safe' filter.
23:36 Magus-
nua: read the template docs
23:37 nick125
Jacolyte: Pastebin how you're including it in your urls.py.
23:37 Lollipopz
anybody used FormPreview?
23:37 Jacolyte
just like this: include('photologue.urls')
23:37 nick125
Jacolyte: That won't work..
23:37 Magus-
but where?
23:37 Magus-
you hooked it up with an actual url, right?
23:37 Magus-
you didn't just type that in urls.py itself?
23:37 Magus-
go back and read the bloody tutorial if you've forgotten this absolutely basic stuff
23:38 kittyN
magus how do you know so much stuff?
23:38 Magus-
this is not some magic syntax for photologue
23:38 Magus-
its exactly the same as every other url include EVER
23:38 Magus-
kittyN: I pay attention
23:38 Jacolyte
Magus-: I said previously, what am I mapping it to? readme doesn't say anything. Do I just map it to any arbitrary url in my urlpatterns?
23:39 Magus-
wherever you want photologue!
23:39 Magus-
want it at /photos/? include it at photos/
23:39 Magus-
EXACTLY LIKE EVER OTHER INCLUDE EVER
23:39 Magus-
you include them wherever the hell you want
23:39 Magus-
that's the entire point of reversing, the url doesn't matter
23:39 Magus-
it adapts to where you put it
23:39 Magus-
I don't know why you keep expecting some photologue specific stuff here
23:40 Magus-
as I keep saying, it is 100% standard
23:40 Magus-
normal url include
23:40 Magus-
nothing special
23:41 donspaulding
will a queryset ever go back out and hit the DB twice? or does it use its cache until it gets GC'ed?
23:42 Jacolyte
giving me a not found error
23:42 Jacolyte
404
23:42 Magus-
donspaulding: only if you change the filter or use a different slice or such
23:42 Jacolyte
I mapped it to /photos/...
23:43 Magus-
perhaps if you tried using a pastebin to show us your attempt, since we can't magically know what you're doing :)
23:43 Jacolyte
now it redirects me to http://example.com/photos/gallery/photos/, and says not found.
23:43 nick125
Jacolyte: You need to setup your Site object correctly
23:43 nick125
Go into the admin inteface, click on "Sites" and modify the first object
23:43 donspaulding
Magus-: thanks
23:45 Jacolyte
I love how photologue has almost no documentation.
23:45 nick125
Just have to dig in the code a little bit..
23:49 ThrushAAX
hmmm, apparently when using a ModelForm and adding fields not in the Model, these extra fields are ordered seperately from the models fields. :(
23:50 Jacolyte
how can I tell what context is being sent to a template
23:50 Jacolyte
the photologue docs don't say
23:50 Jacolyte
er wait.. one sec..
23:50 Jacolyte
nvm
23:50 Lollipopz
'TestModel' has no attribute base_fields :O
23:50 nick125
Jacolyte: Check in the code..if it's a generic view, RequestContext. If it isn't, Context.
23:50 Honeyman
Anyone heard any news on #7154 ("Not all managers gets copied from abstract models")?
23:50 DjangoBot
23:53 merowinger
not really a django question but can somebody tell me why this results in None? http://paste.pocoo.org/show/83873/
23:53 nick125
Jacolyte: (those are the defaults, mind you..you CAN specify a different context)
23:54 mattmcc
merowinger: The function returns None.
23:54 tonfa
merowinger: list.append() returns None
23:54 tonfa
not a new list
23:55 merowinger
ah okay
23:56 merowinger
hm does this behaviour have any advantages instead of returning an empty list :-)?
23:58 tonfa
it's just how python behaves :)
23:59 Jacolyte
mmm... sorta works now
23:59 bkeating
I have a form thats for the most part static, except for a few radio buttons (membership levels) which i'd like to pull from an existing model. can I mix-n-match static and dynamic fields in my form?
23:59 Jacolyte
getting no thumbnails :|
Page 30 of 30   ← Previous  (2,986 total)