Nouveaux: no, the templates are reloaded automatically when changed
joshfinnie has quit
Nouveaux
adamsilver: i'm using the development toolbar and it says the template rendering even though the page loads
er
it says template is not rendering
mykul joined the channel
nedbat has quit
rend joined the channel
Nouveaux has quit
FunkyBob
adamsilver: unless you're using the caching template loader
sivy has quit
leetrout joined the channel
adamsilver: btw--- Photo.objects.exclude(pk=p.id)
myusuf3 joined the channel
adamsilver
FunkyBob: thanks
home has quit
mindsocket joined the channel
bojo_ joined the channel
florinm has quit
bojo has quit
lVathan joined the channel
FunkyBob
anyone else ever find South doesn't create fkey constraints and indices correctly?
home joined the channel
zauberpony has quit
jondbaker
\join #tastypie
jondbaker has left the channel
b3free joined the channel
schinckel
FunkyBob: I have found that you need to manually do a keep_default=True on your alter table/add column commands.
(If you want the defaults stored in-db. Which I still do because I have some legacy code that accesses the db through SQLAlchemy)
b3free has quit
robbyoconnor joined the channel
seagreen has quit
Adys
django from git is supposed to work on python3 right? it installs properly but throws these errors during install: http://paste2.org/p/2541639
BombStrike joined the channel
phildini joined the channel
zauberpony joined the channel
phildini has quit
anth0ny joined the channel
zoumpis has quit
myusuf3 has quit
sambao21 has quit
aviraldg has quit
myusuf3 joined the channel
mattions joined the channel
lobo_d_b has quit
rend has quit
chuckharmston joined the channel
mindsocket has left the channel
napperjabber has quit
Shubuntu joined the channel
mattions has quit
dali has quit
mintos joined the channel
pi___ has quit
tkaemming joined the channel
leo2007 has quit
phildini joined the channel
tuxcanfly joined the channel
lVathan has quit
Holocaine has quit
Scub has quit
etcetera has quit
logan5_
he in django admin, instead of seeing the ID attribute of my foreign key it says "Product object" in django admin
how do i show the id, from the model page in django admin
Bloc joined the channel
muhuk
logan5_: you can find the answer in documentation
logan5_
ModelAdmin.form
I see
mattmcc
It uses your model's string representation.
FunkyBob
this is t ouched on in t he tutorial
areil joined the channel
adamsilver has left the channel
cellofellow joined the channel
cellofellow
I have a template that is generating latex output, which of course has a lot of \backslashes. One line in particular has a \textwidth which the \t just turns into whitespace in the output, even running through the safe filter.
chuckharmston has quit
Scub joined the channel
kvda has quit
etcetera joined the channel
FunkyBob
cellofellow: it shouldn't... unless you're creating templates from strings
mykul has quit
cellofellow
I'm not using django for this little script, just the template engine.
I load the template with Template(open('mytemplate.tex', 'r').read())
FunkyBob
so, still no reason for \t to be treated as an escaped tab
notice the "or" on the line that sets ui['size'] which was the problem spot anyway
muhuk
cellofellow: I'm pretty sure it does, do a repr on the string
cellofellow
the \t was being parsed by python in that line
now it works
rhapsodhy has left the channel
muhuk
I thought it was some "\t" saved into a file and then read back.
naro joined the channel
naro has left the channel
cellofellow
nope, sorry it wasn't clear
(on an offtopic note, but does anybody know the exact screen dimensions (in inches or metric) of an iPhone 5? Not pixels, not the size of the phone.)
stephenmcd has quit
never mind, I did some math on a 4 inch 16:9 screen to show a 3.5/2 screen.
leetrout has quit
home has quit
ICheeseYou has quit
logan5_ has quit
leo2007 joined the channel
mtigas has quit
yedi joined the channel
yedi
with django forms, the clean_<field> and clean methods can raise validation errors, but they only show up next to the offending input field in the UI
is there a way I can get a default error message to display at the top of the page/form if any errors exist
that way users won't have to be confused when they submit a form and they get sent back to the same page. not realizing they have to scroll down to see that they have errors
mattmcc
{% if form.errors %}There are errors. Look down.{% endif %}
yedi
actually wow nvm
yea so many ways to solve it, i'm just being dumb
endra joined the channel
endra
Hey
What's the best way to send the header that allows other websites to include some views in an iframe? Should I be disabling the clickjacking protection middleware?
RoboHak joined the channel
mattmcc
I'd probably set aside some views specifically for that purpose.
endra
So manually handle sending the header?
mattmcc
There are view decorators to manage it.
endra
I only saw SAMEORIGIN and DENY, but I don't think I need any of those