Yeah, I see one with an IPAddressField on the Vote model.
k5ehx has quit
So I think it's something like this to get access to the IP in the view: ip=request.META['REMOTE_ADDR']
m8 has quit
mmikeym joined the channel
micah_chatt joined the channel
shellie_ joined the channel
jab3z has quit
Frosh has quit
alexsnake has quit
zacharytamas is now known as zacharytamas|awa
calvinmetcalf has quit
shellie_
I am new to django. I've created a model Page, and I want that the first time a page is created, that a default article is created and associated with it. How can I trigger this from another object?
mattmcc
shellie_: Signals
shellie_
mattmcc: thanks, I shall investigate
ryanisnan has quit
zacharytamas|awa is now known as zacharytamas
maugzoide has quit
faldridge joined the channel
eka has left the channel
robbyoconnor joined the channel
Arctico has quit
Arctico joined the channel
someprimetime has quit
bender314 joined the channel
sligodave joined the channel
nszceta has quit
lightstrike has quit
thepeculiarform has quit
mijicd has quit
tbaxter has quit
maugzoide joined the channel
mihow has quit
chrismed has quit
Left_Turn
hey in the documentation, the get method calls a detailView. but the example is wrong as I get this error: "Generic detail view BloggedView must be called with either an object pk or a slug." http://bpaste.net/show/eGgaXGTykoOZzLwLz4dy/
Yeah, by default DetailView expects (as it's telling you) either a pk or slug.
So blogged_id -> pk
cr3 has quit
Left_Turn
sorry i dont understand.. what is -> pk?
mattmcc
Change blogged_id to pk in your urlpattern
Left_Turn
oh
thepeculiarform joined the channel
ok i got another error but hopefully this is something to do with my code that i can fix... Exception Value: Reverse for 'posters' with arguments '('',)' and keyword arguments '{}' not found.
PolCPP joined the channel
ezdookie joined the channel
ustunozgur has quit
nedbat joined the channel
nacespeedle joined the channel
someprimetime_ joined the channel
Left_Turn has quit
PolCPP has quit
someprimetime has quit
someprimetime_ is now known as someprimetime
renlo has quit
aberrant has quit
Left_Turn joined the channel
rajesh has quit
zacharytamas has quit
koell has quit
Randomaniac is now known as Randomaniac|Away
sligodave has quit
thedodd has quit
micah_chatt has quit
fourgrim joined the channel
hwrdprkns joined the channel
bwreilly has quit
snurfery joined the channel
ilovett_ has quit
ilovett joined the channel
renlo joined the channel
Tyris joined the channel
ustunozgur joined the channel
Sharebear has quit
empty has quit
ustunozgur has quit
thepeculiarform has quit
pabardina has quit
empty joined the channel
thepeculiarform joined the channel
nacespeedle has quit
maugzoide
nedbat: If I use "coverage run --omit="*/migrations/*,*/tests/*,*/.virtualenvs/*,**/env/*" http://manage.py test -v2 apps" it gives me a different result of django-jenkins.
axoplasm joined the channel
nedbat: I read the django-jenkins source code and… nothing is wrong. it is just a wrapper.
nedbat
maugzoide: sorry, i don't understand. What are the two ways you are running tests, and how do the results differ?
davidals has quit
maugzoide
nedbat: Sorry for not reintroducing the subject. I am running tests using coverage run (omiting migrations, virtualenv and unnecessary stuff) manage.py apps (apps is a folder with Django apps).
maugzoide: i have to be afk for a few hours, but i can help with this later if you can show all the specifics of how you run the tests (both ways) and how the results differ.
maugzoide
nedbat: Ok, thanks! I will open an issue in coverage.py
nedbat: Thanks for your support.
nedbat
maugzoide: please include plenty of details.
maugzoide: and keep in mind what I said before.
JerryT has quit
about running the tests without coverage to see if the problem still exits.
exists
maugzoide
nedbat: Of course I will include details.
jladage has quit
nedbat has quit
dlam joined the channel
sonofdirt has quit
bwreilly joined the channel
hazzadous has quit
dlam has quit
ovnicraft has quit
axoplasm has quit
Sweetman joined the channel
renlo has quit
Guest24966 has quit
adiq has quit
stickperson has quit
mgrouchy joined the channel
Guest24966 joined the channel
axoplasm joined the channel
hwrdprkns has quit
ub1quit33 has quit
stickperson joined the channel
bwreilly has quit
zlalanne has quit
cesar_bo has quit
cjwelborn has quit
Kayra joined the channel
cjwelborn joined the channel
Left_Turn
matt_c, the error is in my template not urls. It doesnt recognise the model in the template.
bhitov has quit
i can fix it but i wonder why the class variables like model didnt