doismellburning: it is stil "messy" and i haven't commit for days
the current code in my laptop is quite different
doismellburning
pupil: that is unhelpful; I recommend rectifying it
pupil
doismellburning: ok, i'll clean it soon
CharlesFinley
Hi, i just implemented OAuth2 authentication and i'm able to retrieve the information about a specific user from Google+. I'm going to do the same with Twitter and Facebook. Question: how do i get a unique user's ID from different services?
doismellburning
pupil: Celery is your friend for asynchronously doing your scraping
sonthonax has quit
matthieu_ joined the channel
CharlesFinley
pupil: can you describe your method of detecting scam websites?
matthieu_
Hi guys ! I have troubles sending an email from my django app. It works perfectly well in a shell, but doesn't in the actual app. Here's my code : http://dpaste.com/1MQ7ASE and here's my traceback : http://dpaste.com/1V48G4K Can someone help me please ? ^^
melhiors has quit
pupil
CharlesFinley: just simple word token comparison, using fuzzywuzzy and sequencematcher
doismellburning: thanks for the celery info, i just know it
CharlesFinley
I just had a look at your code... I suggest your read this book: Introduction to Information Retrieval - Manning, Raghavan, Schutze
keimlink joined the channel
pupil
thanks CharlesFinley, i'll search the book
CharlesFinley
you should.
Hanzki has left the channel
matthieu_
Anyone ? Plase ? :(
+e
pupil
doismellburning: does celery is some kind of multithreading in python?
doismellburning
pupil: in an incredibly incredibly loose sense - "kind of"
saschpe is now known as zz_saschpe
pupil
matthieu_: 'module' object has no attribute 'wrap_socket', check the models attribute usage in views
cdr joined the channel
CharlesFinley
I'm trying to use OAuth2 for account creation in my system. What field should i store in my database as a unique reference the user?
matthieu_
pupil : what do you mean (I'm quite new to django) ?
geisst-london has quit
Terminus joined the channel
geisst-london joined the channel
zz_saschpe is now known as saschpe
bibhas joined the channel
pupil
matthieu_: when i need to send email , i ussualy put it in separate python script, not in django views
Anyone here has an idea how to model users with OAuth2 authentication?
matthieu_
armicron: With either send_mail or appengine mail, my emails seem to get lost in the nether :(
andyau
I know this is simple and why I'm finding it hard to solve. I want to save the id of a object on save in the user table? But just hitting a wall?
mun joined the channel
mun
hi
with class-based views, what is get_context_data() supposed to return? i know it's supposed to return a 'template context', but is a template context basically a dictionary containing all of the variables and their corresponding values to be substituted for in a template?
tonyyarusso has quit
tonyyarusso joined the channel
Guddu joined the channel
andyau
How about saving to a second model with the one view?
jrrickerson joined the channel
Hairy has quit
jakul has quit
Leeds has quit
eVRiAL joined the channel
shredding joined the channel
desophos joined the channel
shredding has quit
shredding joined the channel
frek818 joined the channel
frek818 has quit
enkrypt has quit
roger-gordon-old
Hi again. On the path to upgrading Django and Python, I’ve hit a snag. It seems there’s an issue with the syntax of my .bashrc file. Could someone take a look for me please? https://dpaste.de/nqot
frek818 joined the channel
sthzg joined the channel
Terminus
roger-gordon-old: add 'fi' after line 13.
roger-gordon-old
Thanks Terminus! That worked for me :)
croepha has quit
I deleted that ‘fi’ earlier because I thought “That can’t be right - I must have spelled ‘if’ backwards”. :D
Out of interest what is ‘fi’? Is it short for ‘finished’?
Terminus
roger-gordon-old: bash uses it to mark the end of the if block. it's simply the 'if' reversed.
roger-gordon-old
LOL so it is ‘if’ backwards, but it wasn’t my mistake. That’s intersting.
Thanks Terminus
croepha joined the channel
Nizumzen joined the channel
clone1018_ joined the channel
shredding joined the channel
rns has quit
jarshwah_ has quit
kuter joined the channel
Xard has quit
Xard joined the channel
limbera joined the channel
tyfighter joined the channel
SpoutBE has quit
andyau
Hi all I have spent a day going around in circles on trying to save to two models at once can anyone offer some advice?
bnprk has quit
limbera
when i make the get request on this view, i only get back dist_goal and freq_goal: https://dpaste.de/CdJg
and that makes sense because of line 28
and it's necessary for when i am making the POST request
but i want to get those values from the database and i cant
any ideas?
bnprk joined the channel
CrowX-
how do I make a model field's default value to be another field's value? For example how do I make a field "ticket_number" whose default value would be the same to the model's id, but to be able to change it later?
Guin joined the channel
Hairy joined the channel
Terminus
CrowX-: i'd create the record first so that the pk is generated and then do foo.ticket_number = pk
CrowX-
Terminus, can't it be made on creation time?
Terminus
CrowX-: note that all your fields should allow null values so that creation won't fail.
CrowX-
yeah, I know that
Terminus
CrowX-: not unless you're generating pks manually. if it's autoincrement then it's something your RDBMS has to generate first.