why do you even have html entities there in the first place, what are you trying to do?!
bed777
entities*
remove ENTITIES and lookup in DB
without ENTITIES
because in my DB are without
Forgetful_Lion joined the channel
acmehandle
Oh sorry, python is requests.
msc joined the channel
veb joined the channel
mkoistin_ has quit
apollo13
bed777: first of all do something like that on the server, secondly you shouldn't remove them but replace them with their actual characters if at all, and third: why do you even have them…
mkoistinen joined the channel
bed777
ok, cool, make sense. I can do that on the server :)
any python function?
or only BS?
tbaxter
what?
FunkyBob
lxml
apollo13
dunno if there is something existing, but it would be easy enough to write
doismellburning
"BS"?
bed777
BeautifulSoup
FunkyBob
in lxml's HTML parse it has a "resolve_entities" option
josuebrunel joined the channel
bed777
thanks FunkyBob
iLoop2 has quit
geetar has quit
geetar joined the channel
Genitrust joined the channel
elyezer_ has quit
PantsOfChocolate has quit
theslow1 joined the channel
theslow1 has quit
hubx joined the channel
bwreilly joined the channel
acmehandle has quit
Swambo has quit
rge has quit
cilkay joined the channel
bnmalcabis has quit
tbaxter has quit
gremly joined the channel
limbera
hi all
i have inline javascript in my templates, and am using data from my views to populate arrays in my javascript (i'm rendering some charts to the screen)
backthatzachup has quit
i would much prefer to keep my javascript in a separate file though, and not have a big mess of inline code below my HTML
geetar has left the channel
is there a django way to do that?
i thought about render using a .js file instead of a .html template but that seems a bit messy too
bed777 has quit
al1o joined the channel
yoyoohrho has quit
matason joined the channel
aul joined the channel
veb has quit
NomadJim has quit
desophos
what is the best way to populate a ModelForm dynamically? i have a dropdown menu listing several objects and i want to populate the form based on which object is chosen
munichlinux joined the channel
NomadJim joined the channel
i'm currently thinking that i should send the full model back to the view with ajax and have the view populate the form
totoybato has quit
because the full object list is already in the context
if that's the way to do it, then how can i find the object to send just from the dropdown menu?
currently the menu is populated with the object names
heyts has quit
heyts joined the channel
Destos has quit
ninin has left the channel
nlh has quit
ekke85 has left the channel
mihow has quit
crazydiamond joined the channel
yeukhon joined the channel
crazydiamond
Hi. Can anyone suggest way to deploy Django on Apache + mod_wsgi using virtualenv with Python3?
darkpixel joined the channel
cilkay
Hello. I have a ClientRelease model which is related to a Client model and also a ClientReleaseLkp model from which it looks up the client_release.code and gets client_release_lkp.description. I can do "select_related" to get the related ClientRelease object(s). How would I fetch the ClientReleaseLkp object(s) related to the ClientRelease object(s)?
crazydiamond: (have you read the Django documentation on doing so? if not, the mod_wsgi docs?)
crazydiamond
doismellburning, I have a problem e.g. no execfile command exists for it
mkoistin_ joined the channel
cilkay, so, ClientRelease.objects.get(...).code will be ClientReleaseLkp
doismellburning
crazydiamond: so you're most likely to get the most/best help if you use the form "I want A; I have done B, I expected C, but I got D", particularly with pastebinned examples