8:07 AM
merc88 joined the channel
8:07 AM
nix64bit joined the channel
8:08 AM
rpkilby joined the channel
8:09 AM
jalalsfs joined the channel
8:09 AM
dedsm joined the channel
8:10 AM
mcspud
Can anyone remind me the flags to compile any crosslinked deps on java
8:10 AM
thx
8:10 AM
;(
8:10 AM
mitaka joined the channel
8:13 AM
rpkilby has quit
8:13 AM
dedsm has quit
8:16 AM
audioburn
i just had to migrate my database twice, migrated once, django.contrib.sites didnt work, migrated again and sites works. what the hell?
8:16 AM
only change is that i am using virtualenv
8:19 AM
Paradisee joined the channel
8:19 AM
Paradisee
hello o/
8:19 AM
VikingHoarder joined the channel
8:22 AM
jrawson joined the channel
8:23 AM
nix64bit
\o/
8:28 AM
Paradisee
FunkyBob: hello, you there?
8:29 AM
jtiai
\o
8:29 AM
Paradisee
jtiai: o/
8:30 AM
__marco joined the channel
8:33 AM
kingarmadillo joined the channel
8:33 AM
guys, i've been followin this guide so far, i can send the email, but in the email there's no link to change my password....how's possible?
8:34 AM
8:39 AM
usr123 joined the channel
8:40 AM
usr123
If modelA is foreign key for modelB, I want to get the instances of modelA which are not related to any instance of modelB
8:41 AM
I thought of doing a total modelA instances - modelA instances linked to modelB. Is that correct?
8:41 AM
jtiai
usr123: so ModelB has fkey to A ?
8:41 AM
usr123
jtiai: Yes
8:41 AM
jtiai
usr123: try ModelA.objects.filter(ModelB__isnull=True)
8:42 AM
mattmcc
It's easier than that, you can do filter(<relatedmodel>=None)
8:43 AM
Assuming you're on the many side.
8:43 AM
usr123
jtiai: It says Cannot resolve keyword 'Defect' into field. Choices are: angle, defect_pipe_file, fluid_present, id, inner_dia, is_insulated, isometry_file, length, material, name, original_pipe_file, outer_dia, pipe_data, pulser, thickness, zone, zone_id . Defect is my ModelB
8:45 AM
mattmcc: Umm, no. All of my ModelB instances are definitely going to have a link to ModelA, so my ModelA is pipe, and ModelB is Defects
8:45 AM
sunil_bansal joined the channel
8:45 AM
I want to get all Pipes which don't have a defect
8:45 AM
crem has quit
8:46 AM
hotpot33 joined the channel
8:49 AM
stahl joined the channel
8:49 AM
kezabelle
Pipe.objects.filter(related_name=None) (or __isnull=True) should work then
8:50 AM
shangxiao
Paradisee: what is in the email?
8:51 AM
capella-da-star has quit
8:51 AM
Paradisee
shangxiao: nothing :(
8:51 AM
there's what i wrote in the template "verification.html"
8:51 AM
8:52 AM
shangxiao
Paradisee: so in your template there's the word "verification" ?
8:52 AM
Paradisee
ya.
8:54 AM
code1
is it safe to upload my django project to python 3.7?
8:55 AM
shangxiao
Paradisee: take a look at django's email template for verification and copy the bits you want. There'll be a link (done with reverse()) in there.
8:55 AM
mattmcc
code1: What did you develop it with?
8:55 AM
Paradisee
shangxiao: where can i find it?
8:55 AM
shangxiao
Paradisee: in the django core code
8:55 AM
Paradisee
gonna looking for it.
8:56 AM
code1
mattmcc: 3.6 I think
8:56 AM
I mean it's on 3.6 now but can't remember if it was originally 3.5
8:57 AM
mattmcc
Well, the release notes should cover any potential issues. But if you have unit tests that cover your code, you can safely verify that it works on newer versions.
8:57 AM
jtiai has quit
8:57 AM
Paradisee
shangxiao: i don't really know where is it btw.
8:57 AM
Tau has quit
8:58 AM
shangxiao
8:58 AM
see the email one
8:58 AM
code1
mattmcc: good point. are python 3.x upgrades usually fully backwards compatible?
8:59 AM
mattmcc
That's what the release notes are for.
8:59 AM
Ergo joined the channel
8:59 AM
Paradisee
Could not parse the remainder: ',' from 'uid,'
8:59 AM
mattmcc
They'll identify any backwards-incompatible changes.
9:01 AM
Paradisee
9:01 AM
nazarewk joined the channel
9:03 AM
shangxiao
9:03 AM
Paradisee
shangxiao: i already did.
9:04 AM
shangxiao
why is there a comma after uid? :)
9:04 AM
that's not in the link above ;)
9:04 AM
Paradisee
Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name
9:05 AM
shangxiao
i think funky's tutorial assumes you have admin in installed apps
9:05 AM
you may need to add it
9:05 AM
Paradisee
...
9:05 AM
shangxiao
otherwise you'd need to replicate that view yourself
9:06 AM
Paradisee
what do you mean.
9:06 AM
'django.contrib.admin',
9:06 AM
sunil_bansal has quit
9:07 AM
shangxiao
and django.contrib.auth?
9:07 AM
FunkyBob
...
9:07 AM
Paradisee
i got that too
9:07 AM
FunkyBob
what's the problem now?
9:07 AM
Paradisee
9:07 AM
hotpot33 joined the channel
9:07 AM
FunkyBob: we did not resolve the whole story the other day.
9:08 AM
FunkyBob
...
9:08 AM
shangxiao
...
9:08 AM
FunkyBob
what's the problem now?
9:08 AM
shangxiao
can you dpaste your current error?
9:08 AM
Paradisee
the email does work, but it doesn't send the link to change the password.
9:08 AM
FunkyBob
well, what did you put in the template? and what do you get out?
9:08 AM
nix64bit
def form_valid(self, form, ):
9:08 AM
roadie has quit
9:08 AM
FunkyBob
what _do_ you get ? what makes you say it's wrong?
9:09 AM
Paradisee
9:09 AM
nix64bit
i find myself using the tuple form with the trailing comma
9:09 AM
Paradisee
FunkyBob: i haven't put nothing inside...we're now putting some stuff inside.
9:09 AM
rpkilby joined the channel
9:09 AM
nix64bit
is that good form or just crazy
9:09 AM
FunkyBob
Paradisee: you were past this last time... you realised you needed to set the namespace properly, and use the _new_ url names
9:10 AM
Paradisee
FunkyBob: i did.
9:10 AM
roadie joined the channel
9:10 AM
9:10 AM
FunkyBob
{% url 'password_reset_confirm' <--- No, you didn't
9:10 AM
Paradisee
i copied your guide.
9:10 AM
FunkyBob
my guide does not containe the email template
9:11 AM
Paradisee
i know that.
9:11 AM
but if it doesn't work what can i do?
9:11 AM
i come here, and ask..
9:11 AM
sunil_bansal joined the channel
9:11 AM
FunkyBob
so stop running off and saying things are fixed... look at what I showed you...
9:12 AM
you cut'n'pasted an email template from somewhere... and it's wrong
9:12 AM
do you have any idea what the {% url %} tag does?
9:12 AM
Paradisee
well, i did ask you yesterday something about this problem, but you went afk.
9:12 AM
that's it.
9:13 AM
let's do some steps back.
9:13 AM
FunkyBob
9:13 AM
stahl has quit
9:13 AM
Paradisee
the email works, but it does not show nothing.
9:13 AM
ASUchander has quit
9:14 AM
ASUchander joined the channel
9:14 AM
rpkilby has quit
9:14 AM
DrYockel has quit
9:14 AM
gacrux has quit
9:15 AM
FunkyBob
it doesn't show nothing? so it does show something?
9:15 AM
if the email worked, you wouldn't get that error
9:15 AM
Paradisee
well, if i type something in the file it does show that.
9:15 AM
FunkyBob
you need to change that pattern name to register_confirm ... with the namespace and a : before it
9:15 AM
Paradisee
i mean, in "verification.html".
9:15 AM
FunkyBob
"the file"?
9:15 AM
Valduare has quit
9:15 AM
greg_f joined the channel
9:16 AM
mitaka has quit
9:16 AM
your focus seems to keep wandering away from the source of the error and my attempts to point you at the solution
9:16 AM
Paradisee
9:17 AM
jonesnc joined the channel
9:17 AM
FunkyBob
is that your root urls?
9:18 AM
Paradisee
this is my app urls.
9:18 AM
Haudegen joined the channel
9:21 AM
bradfordli123 has quit
9:21 AM
kingarmadillo joined the channel
9:22 AM
jonesnc has quit
9:24 AM
thunfisch
Hey, I'm testing that some views will rais an PermissionDenied, but they're spamming the test log with "Forbidden (Permission denied):...". Is there any way that I can suppress these messages?
9:24 AM
Paradisee
FunkyBob: i don't understand.
9:26 AM
kingarmadillo has quit
9:27 AM
even if i change that, doesnt happen nothing.
9:28 AM
acetakwas joined the channel