I considered doing that, as I'm not expecting a big amount of records
Stragler joined the channel
Biwaa joined the channel
scipy53 joined the channel
scipy53
Is there anyone here who can help me with a python-social-auth question?
FunkyBob
don't ask to ask, scipy53 ... just ask
scipy53
Okay, sorry
lacrymology joined the channel
Biwaa has quit
I am using Python-Social-Auth to connect users to their Linkedin accounts. Sometimes a user creates a second account (in my app) which they try to link to Linkedin but it conflicts with the SocialAuth record from the first account so I get an AuthAlreadyAssociated Exception. What I'd like to do is to switch the user to the second user for the retrieved social auth record when that exception is raised. I already have middleware setup to handle that
exception, but can't figure out how to pull up the socialauth record retrieved by the system which is raising the exception.
hmm... evidence I eat my own dogfood: requirements for current project - https://dpaste.de/PQQr
chicocvenancio_ has quit
Destos joined the channel
Destos has quit
jas02 joined the channel
MaggieC has quit
sjdines has quit
OskrGrme joined the channel
woltman joined the channel
jas02 has quit
Info-Screen has quit
toothe
prefetch is shaving off around 1 to 1.5 seconds
based on my tests...
Info-Screen joined the channel
rawl joined the channel
rawl
hi, is there an updated version of https://docs.djangoproject.com/en/1.10/intro/tu... I could use? Following this tutorial creates a urls.py file that imports ‘patterns’ which fails when I try and run manage.py
can a management command be imported in the shell?
FunkyBob
(though I don't see where the 1.10 docs mention patterns())
morenoh149: well, yes... it's a class
rawl
FunkyBob: yup, sorry about that. I had switched to 1.10 to see if that helped. I’ve tried on 1.11 and 1.10.7 (currently on it)
morenoh149
FunkyBob: I can't seem to import it
rawl
but both seem to create urls.py with an import for patterns when i run `django-admin startproject mysite`
FunkyBob
rawl: the tutorials do? or your startproject does?
exactly where are you seeing patterns?
john2x joined the channel
Koterpillar
are you somehow using django-admin.py from an older release?
rawl
Koterpillar: I hadn’t thought of that actually. Let me see.
FunkyBob
which comes back to my first question :)
m0wth_ has quit
Koterpillar
run it with --version
FunkyBob
schinckel: ok, recommended way to store intervals in django.... duration field? or is there rrule support? :)
rawl
ok, thanks FunkyBob and Koterpillar, it’s a versioning problem. I have my venv all tangled up so `python -m django —version` shows the current version I installed but checking version on django-admin shows 1.7 :O
FreedomFighter joined the channel
now that I know that I can take it from here. Thanks again.
Koterpillar
maybe your shell cached the binary location? Running hash -r might help.
well, "binary"
FunkyBob
executable :)
rawl
oh nice. That was quick and easy. :D
Koterpillar
rawl: consider getting rid of this system-wide (?) Django
FunkyBob
+1
m0wth joined the channel
rawl
Koterpillar: yea, I’m going to go ahead and do that.