Questions tagged as 'python'

0
answers

Chat using different networks

I chatted in python , and when I test locally, the chat works, but when I test on networks that are in different places, it does not work, example server on my computer and client on a friend's computer. client code: from socket import soc...
asked by 03.04.2016 / 01:14
1
answer

Fetchall () limited in python

I am making a code that does a query in postgres and returns it in a list, however this is giving memory error. The part of the code that does this: c = conn.cursor() c.execute("SELECT latitude, longitude, gid FROM pontos") records = c.fetch...
asked by 03.04.2016 / 17:02
0
answers

Is it possible to completely automate a payment process using Pagseguro?

I'm developing an ad site where the advertiser must pay for your ad before it's available online. I already have an integration with Paypal, to use a credit card, but I would also like to integrate Pagseguro, since it allows other payment met...
asked by 31.03.2016 / 21:23
0
answers

Error migrates: TypeError: Required argument 'year' (pos 1) not found

I'm having difficulty executing python manage.py migrate , until I get to create the tables more at the end I get the following error:    TypeError: Required argument 'year' (pos 1) not found Can anyone help me?     
asked by 28.03.2016 / 20:12
0
answers

Exporting data to a .cfg file

Can anyone give me an example of how to export the data from my models by pk to a .cfg file? I tried to use Mymodel.objects.get(pk=pk) but it did not work very well.     
asked by 18.03.2016 / 00:18
1
answer

list indexes

My two initial lists have repeated values: B_I = [Cab, Bou, Bou, RFF, RF1, Rf2, Cor] Ba_F = [Bou, Zez1, Zez2, Praca, Sro, Sro, Falag] I deleted the repeats, keeping: Final = [Cab, Bou, RFF, RF1, Rf2, Color, Zez1, Zez2, Praca, Sro, Falag] I...
asked by 20.04.2016 / 17:34
1
answer

Django-allauth configuration

I'm trying to implement django-allauth in a personal project but I'm not getting it, in version 0.20.0 it's easy but I wanted to try the latest one that is 0.25.2, not me but when access to link does not happen, follow the code: INSTALLED_...
asked by 06.04.2016 / 05:24
1
answer

Error in running django-admin.py in django 1.9

I'm trying to learn django and would like to understand this notification I get every time I run the django-admin!    Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INSTALLED_A...
asked by 13.03.2016 / 22:24
1
answer

initial index of a list after using set

I used this code initially to aggregate the values of B that had equal value in A into dictionaries: A = [12, 15, 10, 15, 12, 10, 10, 10, 15, 12, 12, 15, 15, 15] B = [0.2, 0.3, 1.1, 0.2, 0.2, 0.7, 0.4, 0.6, 0.1, 0.3...
asked by 07.04.2016 / 14:16
1
answer

psycopg2.pool.SimpleConnectionPool, Exception OperationalError takes time to be thrown

I did a test, shut down the server and called the psycopg2.pool.SimpleConnectionPool method, the method is waiting for a response for a very long time, about a minute, only then it raises the OperationalError exception. This is nor...
asked by 21.01.2016 / 20:36