well the browser sends a language code and Django i18n uses locale codes
kanja has quit
mattmcc
And so far it's been working for everyone..
I don't think anyone converts them manually, but I could be wrong.
JanC has quit
zambz has quit
fnguest
i guess i'm not sure whether to store language codes or locale codes in my database
for the items in the app
mattmcc
I imagine the only thing using the locale name is gettext.
fnguest
i need to read about how gettext selects the proper locale then
TheZketch has quit
derelm_ joined the channel
derelm has quit
derelm_ is now known as derelm
JanC joined the channel
leo2007 joined the channel
ameeth joined the channel
ameeth
hi i have javascript files i have to include it in django how this could be done i'm eclipseide
hi i have javascript files i have to include it in django how this could be done i'm using eclipse
aviraldg has quit
aviraldg joined the channel
anth0ny_ joined the channel
aviraldg has quit
anth0ny has quit
rudedogg has quit
arturrro joined the channel
ploufplouf_ joined the channel
derekchiang has quit
ploufplouf has quit
ploufplouf_ is now known as ploufplouf
kushal has quit
Goopyo_ joined the channel
mattdevs has quit
Megido
Hi
who know how make multiupload in admin?
sayan has quit
Goopyo has quit
Goopyo_ is now known as Goopyo
charettes has left the channel
FunkyBob
Megido: closest I can think of is django filebrowser
Megido
i dnt want filebrowser
i want multifile upload
FunkyBob
Megido: django-filebrowser has a multi-file uploader
Megido
and what?
FunkyBob
what, you want me to write it for you?
go see how they did it!
Megido
to me it is not suitable
charettes joined the channel
FunkyBob
...
so?
see how they did it, learn, and change it to what you want
Megido
i want change fucking inlines to ONE UPLOAD FIELD
FunkyBob
otherwise, your other choice is to use an inline admin
...
so you want one file field in HTML... to accept multiple files?
that, last I checked, is an experimental feature in some HTML5 capable browsers
Megido: is there a reason this must be in admin?
tazzy531 joined the channel
Milossh has quit
estulticia has quit
fnguest has quit
naro joined the channel
Megido
FunkyBob: yes
anth0ny_ has quit
estulticia joined the channel
FunkyBob
well, you'll have to customise the form, probably the template too, and then make sure django can support the multi-upload mode of the file input in HTML5
then make sure all your browsers can do the same
derekchiang joined the channel
setmeaway has quit
setmeaway joined the channel
sayan joined the channel
ionelmc joined the channel
hirokiky has quit
leo2007
anyone using py3 at work?
FunkyBob
nope
Milossh joined the channel
hirokiky joined the channel
kanja joined the channel
nims11 joined the channel
leo2007
cool
napperjabber has quit
sayan has quit
Megido
FunkyBob: this need only me
FunkyBob: you can get me link to doc how to change it?
FunkyBob
not really, no...
nothing beyond the tutorial showing you how to override admin templates... and the Admin docs themselves
what do y ou plan to do with the images once they're uploaded, anyway?
Bubo has quit
deitarion joined the channel
ls3 joined the channel
deitarion
I'm building a bilingual website but the people who really know French well are artists, not programmers. How do I set up escaping on {% trans %} so one missed & won't mess things up?
So far, the least ugly thing I've found to sprinkle throughout my code is {{ _("H&S Times Publishing")|force_escape }}
badbandit
hey there, is it possible to pass in a composed prefix slugpath to separate url so as to avoid a conflict?
http://dpaste.com/856210/ - problem is that both category_slug and product_slug use the same function to build a composed slug
so even though theyre named different, it breaks
I dont know how to just have the product slug and append the full built category slug w/o breaking it
Megido
FunkyBob: yes, only images. will be ideally attach django-multiupload
FunkyBob
Megido: you misunderstand my question
Megido: once they're uploaded, what will you do?
nicklo joined the channel
tazzy531 has quit
Megido
FunkyBob: resize and save no more
i use now StdImageField
mattmcc
I imagine you just need a custom form class, depending on how django-multiupload presents the files.
ojh has quit
Unless django-multiupload doesn't provide a form field/widget.
m0n5t3r joined the channel
ojh joined the channel
skeet70 joined the channel
kanja has quit
ameeth
hi i have javascript files i have to include it in django how this could be done i'm using eclipse
mattmcc
Where does it need to be included?
skeet70 has quit
badbandit has quit
FunkyBob
ameeth: what does your use of eclipse have to do with it?
skeet70 joined the channel
ls3 has quit
composite joined the channel
derekchiang has quit
skeet70 has quit
hoot_ has quit
robbyoconnor has quit
nims11 has quit
hoot_ joined the channel
arietis joined the channel
robbyoconnor joined the channel
endra joined the channel
morning, endra
endra
Morning FunkyBob
How's it going today?
FunkyBob
not bad... y'self?
endra
Not too bad, working on some models
composite has quit
FunkyBob
took our bub to the beach for the first time
sspross joined the channel
endra
awesome, how old?
FunkyBob
14months
right now I'm trying to document my new app
robbyoconnor has quit
m0rpho joined the channel
sspross
i'm trying to remove a model. i'm using south and wrote a migration to move the data of this model into another model. But if i remove the code of the model too, the migration can not find the model anymore. not a big surprise, but whats the way to accomplish this?
m8 joined the channel
unbit has quit
FunkyBob
sspross: two migrations
unbit joined the channel
sspross
FunkyBob: hm… i think the problem is not the migration, i can seperate the migration and code removal into two seperate commits, but this is ugly to deploy… you know what i mean?