Finally, I need to be able to pass this dict to the view using reverse
apollo13
why would you pass that dict to reverse?
reverse doesn't call your view
amitprakash
hmm
so what kwargs does reverse actually take?
apollo13
those it needs, given your url, no keywords it is
WaqarAzeem joined the channel
amitprakash
oh
that makes sense
eternicode joined the channel
gbel joined the channel
b3free joined the channel
macabre joined the channel
sivy joined the channel
apollo13, also apologies about django filter.. i missed the ref and filter docs in the source
apollo13
amitprakash: np, I am not the author of it ;)
amitprakash
but you commit to it quite heavily
apollo13
not really
I am just trying to get it in shape for django 1.5
amitprakash
ah ok
apollo13
and release a new version
so there are a few recent commits but that's about it (for now)
estebistec joined the channel
jtri joined the channel
deadguy1969 joined the channel
blimpdude joined the channel
hyperair joined the channel
jpcaissy joined the channel
blimpdude
Hello
czue joined the channel
amitprakash
Another thing, if a view is defined as def viewname(request, *args, **kwargs) .. is it possible to redirect to this view with keyword arguments? If so, how?
gbel joined the channel
Left_Turn
is there a site or book that offers a beginner tutorial on django but also sets exercises?
i need exercises because im a n00b in programming and just looking at sample code doesnt help me much
tdrizzy joined the channel
blimpdude
Left_Turn, the Django tutorial is a good place to start
Left_Turn
does is set you exercises? i didnt see any
it*
blimpdude
Left_Turn, what do you mean exercises?
interactive ones?
Left_Turn
like at the end of the chapter.. give you a task to do based on what the chapter taught
blimpdude
ah
It doesn't, though it might suggest what to do further in some parts.
Left_Turn
ok.. i guess ill give it a try.. thnks for the help:)
blimpdude
Left_Turn, it is pretty good
spulec joined the channel
there's also Django By Example, which I find useful from time to time
atula joined the channel
Left_Turn
oh can i google that?
blimpdude
How can I approach the problem of linking multiple email addresses to one account (or possibly multiple accounts to each other)?
Left_Turn, yeah
Left_Turn
thanks blip, it looks a lot more organzised than the main django tutorials. ill try this one:)
blimpdude
The main django tutorial is a lot more comprehensive.
j_syk joined the channel
Left_Turn
oh.. ok youre the expect, ill keep this one for future reference:)
devioustree has left the channel
jessemdavis joined the channel
apollo13
grr, trying pycharm once again and it sucks again :(
munichlinux joined the channel
opening a file via keyboard from the project sidebar doesn't give it focus, waaat…
jtri joined the channel
kezabelle
what sucks about it? aside from obligitory java remarks ;)
jtri
hello, how can I get an array of ids from a query set, rather than an array of objects?
kezabelle
values_list
jtri
I know .values('id') gives a dictionary
ah
thanks
apollo13
kezabelle: question is rather, what doesn't suck
the list will be shorter -_-
kezabelle
apollo13: not really, nearly everyone in the office (me excepted) uses it ;)
apollo13
then ask them how to open a file from the project sidebar and giving it focus in the editor (eg so you can start typing) without using the mouse
munichlinux
is there any tools available for front end build in python/django?
apollo13
I got ctrl+tab+1 to switch to the project bar and arrow keys to navigate to the file + enter to open it -> no focus
kezabelle
I genuinely doubt they'd know, they're mousey folk mostly.
dono_ joined the channel
apollo13
okay, ctrl+shift+n works and let's you choose a file to open *gG*
read: it makes the project sidebar utterly useless
arg and still no focus
QuanSai joined the channel
kezabelle
haha
mgrouchy joined the channel
jtri
wait, values_list gives an array of tuples?
apollo13
jtri: read the docs on iut ;)
rofl Alt+F1 Switch between views (Project, Structure, etc.).
now guess if alt+f1 is taken by my window manager or not :)
kezabelle
I'm going with yes?
Johie joined the channel
myusuf3 joined the channel
makaimc joined the channel
brainwarped joined the channel
gawd I hate list_display_links :(
apollo13
but seriously, why would I want to leave my focus where it was when I open a new file, that makes no sense
kezabelle
apollo13: funny, I get annoyed at nerdtree for giving focus to the file I've just opened, when I want to open more than 1 ;)
apollo13
well…
jaddison joined the channel
ReekenX joined the channel
kezabelle
can't please everyone, evidently. Though I'm probably the niche case
apollo13
I have to pimp my vim config one day
WaqarAzeem joined the channel
kezabelle
don't, you'll regret it :)
jtri
iut?
kezabelle
you'll end up wanting to use vim keybindings for everything, and none of the emulations come close
Raumkraut
I had a dream in which I did ":wq" to save the dream-state, in case things went wrong later
dash joined the channel
Holy_Cow joined the channel
dash
hello gents. django always leads me to ask the most _interesting_ questions
like, are there any good examples of wrapping a RelatedManager to have it return instances of a proxy model in its querysets rather than the original model specified for it?
jpetri joined the channel
apollo13
I am not gonna ask why :þ
dash
apollo13: it's the same old story
apollo13: I am trying to split up a big codebase
apollo13
Figured as much, you probably have to look into the source code for the manager
briancray joined the channel
dash
I may have picked the wrong axis to try to split this on
apollo13
btw making an m2m relation to the proxy itself won't work right?
dash
yes I discovered that :-/
anyway the idea was to take a few model classes with way too many methods and split them into a base model without any methods (which gets moved to a new project) and a proxy model which stays in place with all the old code
ender979 joined the channel
mnaser joined the channel
but of course, they refer to each other, and stuff ends up getting the non-proxy versions.
nedbat joined the channel
nedbat joined the channel
graingert joined the channel
evildmp joined the channel
evildmp
when you have a view, do you generally tie it to a particular template? or do you use logic in the view to make it useful for different but related templates?
I am puzzling where to keep the logic for assembling the address of a person
kenbolton joined the channel
I have some in the model's methods, some in the view, some in the template - a mess
mnaser joined the channel
I would like to rationalise it somewhat
rideh joined the channel
seanbrant joined the channel
Pochacco joined the channel
TheRealJens
Hi everyone. I am using a FormWizard and everytime I reload the page it jumps back to the first step. is this behaviour intended or am I doing something wrong?