So by using the English version as the string identifier, it's guaranteed to always render in at least that language.
haasn
mattmcc: It's a trade-off though. You could either make the assumption that the english locale will always be populated, or you could make the asumption that the english text will never change
angrybac_ is now known as angrybacon
Y04NN has quit
I think the former is a much more reasonable assumption, because I can imagine many situations in which you'd want to change the string that got printed
mattmcc
Sure. And you're free to use your identifier approach.
But, you were asking why it's done the way it is in examples, and that's why.
haasn
But I'm not satisfied. Why do the django example writers think strings are immutable?
hylje
if the english text changes chances are the meaning changed too
angrybacon is now known as angrybacon_
angrybacon_ is now known as angrybacon
haasn
That seems like a really harsh assumption to me
wldcordeiro has quit
hylje
nah
blackcross
mattmcc: Is it possible to just run your site through google to have it translate for the user?
haasn
And randomly breaking all locales just because you fixed a grammar error does too
blackcross
via some backend or app? :)
hylje
it just means the translators need to review the change
having trouble with daylight savings time and a timefield on a form, I am saving the time with USE_TZ = True, and the TIMEZONE setting, when times are saved that are saved in EST even if it is currently DST in effect, when the time is then displayed DST pushes the time forward one hour so they are all off by +1 hour
Xiti joined the channel
do I check if DST is active and subtract an hour from the user entered time before saving to the model?
haasn
(And I'm not exactly free to use my approach either, because it doesn't work with blocktrans, ergo I now have to undo all of the changes I spent the last half an hour making. Oh well)
bx2 has quit
hylje
why wouldn't it work with blocktrans
flobin
so on a page that has a form, how do you know if {{form.media}} is being output correctly?
excuse me, how can i bypass check of csrf on admin?
jessamynsmith joined the channel
whaack joined the channel
or how to add templates to admin
govg joined the channel
jessamyn_ joined the channel
mine0901 joined the channel
Ryanar has quit
Ryanar joined the channel
anddam
has the default application in a project a specific name other than "default"?
rufus has quit
hylje
it can be named anything
ironfroggy has quit
anddam
you mean the name it has on fs
I'm referring to its "role" of application created by django-admin
ironfroggy joined the channel
whaack has quit
jessamynsmith has quit
ddiet
ehh, possibly found a bug, when from a form with a username\password got to a another form with a username\password and so on http://127.0.0.1:8000/admin/login/?next=/admin/ you got only admin as well.
anyone know any .bat file to check if python is installed and if not, install python, then install django using pip and then run server
shauntrick_
thanks let me check @matsaman
SpoutBE has quit
VaticanCameos has quit
BramD joined the channel
VaticanCameos joined the channel
SpoutBE joined the channel
laerus has quit
shauntrick_ has left the channel
VaticanCameos has quit
blip- has quit
space-wizard joined the channel
govg has quit
matsaman
amittbhardwj: probably talk to ##windows
amittbhardwj
matsaman, ok thanks
raijin has quit
ieatkittens joined the channel
sudshekhar has quit
anddam
amittbhardwj: or #python anyway
bebop_ joined the channel
ironfroggy joined the channel
haasn has left the channel
Ariel_Calzada joined the channel
wub_wub joined the channel
ddiet
Trying an django-autocomplete-light, running this error in admin, when trying to save values, or click on a model name. 'relation does not exist' - https://dpaste.de/PeCR, here is my code - https://dpaste.de/w1Ox Any help appreciated
Ariel_Calzada has quit
FreedomFighter has quit
ieatkittens has quit
raijin joined the channel
lastmanstanding has quit
blackcross
mattmcc , FunkyBob :
mattmcc , FunkyBob : what django coder do you guys use? sublime or pycharm or something else?
jessamyn_
I use pycharm
I think most use sublime
moldy
vim is also popular, i think
hi jessamyn_ :)
jessamyn_
I was thinking about mentioning vim, too
anddam
at times the dev server doesn't reload when I save a file
TheJoey
PyCharm++
Mikerhinos joined the channel
anddam
I'm not sure how to reproduce but I have the idea it happens when I save two buffers in quick succession
moldy
anddam: same for me
anddam: i just made it a habit to restart it if in doubt
anddam
moldy: I'm on OS X, what about you?
moldy
anddam: linux
ctrl-c, arrow up, enter. fast enough ;)
jessamyn_
osx here
yeah, I sometimes do that too if it doesn't auto restart
anddam
what strikes me as odd is that once it goes "funny" even waiting and touching again the file that broke the listening won't trigger the auto-reload
bjb joined the channel
fission6
i need to randomize the order of a aquery set but i need it to be "frozen" for a week or so and then reshuffle any ideas?
Genitrust joined the channel
ironfroggy has quit
ironfroggy joined the channel
jgilman joined the channel
whaack joined the channel
renlo has quit
jgilman
jessamyn_: figured out that damn ajax thing yesterday
jessamyn_
jgilman: great!
what was the problem?
jonez
greetings. having some trouble with proper file layout. I made a project called 'atlasproj'. it has a settings.py file. when I try to 'startmigration', I get an error about how module atlasproj.settings does not exist. I'm not sure what I'm doing wrong.