-
Ariel_Calzada has quit
-
Ariel_Calzada joined the channel
-
Ariel_Calzada has quit
-
hypolin joined the channel
-
hypolin has quit
-
jax has quit
-
willingc has quit
-
maugzoide joined the channel
-
lemonjack4 joined the channel
-
kenbolton has quit
-
elyezer has quit
-
djapo joined the channel
-
lemonjack4
Hey everyone, I have troubles understanding why django doesn't use my SHORT_DATE_FORMAT, my settings are: TIME_ZONE = 'Australia/Melbourne' SHORT_DATE_FORMAT = 'd/m/Y' LANGUAGE_CODE = 'en-AU' USE_I18N = True USE_L10N = True USE_TZ = True
-
but in my template {{ asset.upload_date|date:"SHORT_DATE_FORMAT" }} gives me something like 01/21/2014
-
notleigh has quit
-
maugzoide has quit
-
windyhouser joined the channel
-
warrenjin has quit
-
FSCV has quit
-
oubiga has quit
-
nedbat joined the channel
-
hyperair joined the channel
-
Laybunz has quit
-
JulianGindi joined the channel
-
kenbolton joined the channel
-
Naypalm
dd~~q.szw
-
breadfruitman joined the channel
-
kenbolton has quit
-
johnraz has quit
-
george2 joined the channel
-
hi '
-
mihow has quit
-
breadfruitman has quit
-
moldy: the noe who kws
-
hat the besth ivcapture linux<=?
-
Nelluk has quit
-
Gambit- you and me, go
-
now
-
rozap_ joined the channel
-
JerryT joined the channel
-
faldridge joined the channel
-
willingc joined the channel
-
valgrind has quit
-
hwrdprkns has quit
-
georgeirwin joined the channel
-
:! hel to
-
qqq
-
JulianGindi has quit
-
breadfruitman joined the channel
-
adamduren joined the channel
-
msc has quit
-
[diecast] has quit
-
georgeirwin has quit
-
windyhouser has quit
-
adamduren has quit
-
Left_Turn
anyone with regex experience, is there a correct way i can do this..
-
url(r'^(?P<game_id>\d+)/(?P<genre>(rpg|sports|fps)/$', views.posters, name='posters'),
-
bradfordtoney has quit
-
FunkyBob
Left_Turn: depends... what do you want that to do?
-
allow one of those 3 values for the genre?
-
Naypalm
qqq/close
-
Left_Turn
yes after the id
-
Nemus has left the channel
-
FunkyBob
tried it witout the extra () ?
-
Gambit- has quit
-
(?P<genre>rpg|sports|fps) ?
-
keimlink has quit
-
Left_Turn
oh 1 sec
-
Ergo joined the channel
-
keimlink joined the channel
-
mwmnj joined the channel
-
oh FunkyBob that has done the trick... thanks:)
-
TaiSHi
Uber-newbie question: Exception Type:TemplateDoesNotExist / Exception Value:
-
acb_main/index.html
-
But file: acb_main/templates/acb_main/index.html exists
-
user12345
-
FunkyBob
TaiSHi: and acb_main is in INSTALLED_APPS ?
-
TaiSHi
FunkyBob: You're a very clever person
-
FunkyBob
who's been spreading such malicious rumors?
-
TaiSHi
__love__:
-
without the :
-
FunkyBob
ah, I should have known!
-
kobain has quit
-
kobain joined the channel
-
JBreit joined the channel
-
kenbolton joined the channel
-
EyePulp has quit
-
bradfordtoney joined the channel
-
hyperair has quit
-
rgenito has quit
-
radez_g0n3 is now known as radez
-
rxdazn joined the channel
-
schinckel
-
RKornmeyer joined the channel
-
MarbinDrakon joined the channel
-
rgenito joined the channel
-
kenbolton has quit
-
hexus0 joined the channel
-
hexus0
is it possible to pass a model instance when unit testing template tags?
-
JerryT_ joined the channel
-
alexsnake has quit
-
schinckel
hexus0: template tags are just functions. You can pass in whatever you want to them.
-
JerryT has quit
-
hexus0
Hmm I guess I could use the actual Python classes rather than using Template().render(Context()) to call them huh
-
Carlangueitor has quit
-
newzen has left the channel
-
faldridge has quit
-
TheHydrant has quit
-
djapo has quit
-
smoothify is now known as smoothify|off
-
stahl has quit
-
envisean has quit
-
djapo joined the channel
-
basti-mbp has quit
-
wenzhixue joined the channel
-
cottons has quit
-
willingc has quit
-
magicflakes joined the channel
-
willingc joined the channel
-
wenzhixue has quit
-
estebistec joined the channel
-
pydanny has quit
-
willingc has quit
-
estebistec has quit
-
fllr joined the channel
-
willingc joined the channel
-
Ergo has quit
-
stepmr joined the channel
-
kenbolton joined the channel
-
bite has quit
-
nicholasserra has quit
-
xiljin joined the channel
-
zen-cb has quit
-
wenzhixue joined the channel
-
wenzhixue has quit
-
elyezer joined the channel
-
stepmr
Anyone have any idea as to how id use a foreign key field with search_fields ?
-
I'm getting 'TypeError: Related Field got invalid lookup: icontains'
-
okcoker joined the channel
-
windyhouser joined the channel
-
hwrdprkns joined the channel
-
PolCPP has quit
-
santiissopasse has quit
-
coddingtonbear
stepmr -- iirc, you should traverse to the field you want to search
-
so, if it's a related model having a model field, you'd
-
kenbolton has quit
-
santiissopasse joined the channel
-
err, if it's a related model having a field 'name', you'd add something like
-
your_foreign_key__name
-
note the double-underscore notation