1
vote
1answer
13 views

Elastic Beanstalk not creating RDS Parameters

I'm following this tutorial in an effort to create a Django application on AWS. http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html I was able to get everything ...
0
votes
0answers
25 views

OperationalError: (2002, “Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)”)

when connecting to mysql database in Django ,I get the error. 1.I'm sure mysql server is running. 2./var/run/mysqld/mysqld.sock doesn't exist. 3.When I run $ find / -name *.sock -type s, I only get ...
0
votes
3answers
23 views

Calling DATE_FORMAT() in MySQL from Django fails

I can run SET statements to assign variables and use "transaction" to maintain it in the mySQL session, but when I include the function DATE_FORMAT like this: cursor.execute("SET @dowToday:=CAST( ...
0
votes
0answers
24 views

use F to update multiple fields Python

HI i need to update the multiple fields in the database , right now i am updating like this for t in getteamPlayers : getmyplayer= myplayer.objects.get(id=t.playerId) getPlayerAge = ...
-1
votes
1answer
19 views

Mysql access remotely

I have deployed one django application on live IP adress Backend is Mysql running on the same IP. There is pythoncard(GUI) application installed on some another DNS/Gateway. I am getting 2003 can't ...
0
votes
1answer
27 views

use F for referencing 2 tables to update python

HI i have a script which use 2 or 3 tables for referencing to update the data in database below is the code getteam = myteam.objects.only("id") # [:2] limits the query to 2 just for testing for ...
3
votes
2answers
39 views

Django group by dates and SUM values

Is it possible to reproduce this mysql query in Django without using select method ? MariaDB [db1]> SELECT datetime, SUM(datas) FROM table AND datetime BETWEEN '2013-07-26 13:00:00' AND ...
2
votes
2answers
48 views

increase insertion speed in python

I have a script in django which i am running on terminal to update the field values in database , there is about 3000 records to be updated , it updated but it takes so much time. Here is the code: ...
0
votes
0answers
8 views

Apache hangs with Django Application and Matplotlib

Very stuck here and I don't have a whole lot to go on. I had a django application up and running and I started playing around with graphing using NetworkX and Matplotlib to visualize some of the data ...
0
votes
1answer
23 views

IntegrityError #1062 in django.db.utils - Duplicate entry for key 2

Using Py2.6, FreeTDS to import data from a MSSQL database and drop into MySQL. I have a table with a unique key that I think needs to be changed. It should not be unique, and is not the id key. ...
0
votes
3answers
28 views

update null field with integer in django Python

HI i have a field in database whose value is null = true but i need to update it timely with the integers .I am running this script on terminal getW = get_HomeTeam_myworld.w getL = ...
1
vote
1answer
28 views

Django's inspectdb doesn't do ManyToManyField

So I just tested one thing, making the following tables. # Dump of table driverclass # ------------------------------------------------------------ CREATE TABLE `driverclass` ( `id` int(11) ...
0
votes
1answer
32 views

select distinct groups in django

I'm using Django. All my data have a column called 'group' that they belong to. I want to select all the distinct group names from the database. For example, 'groupA', 'groupB', and also get the ...
1
vote
0answers
32 views

django can't load the model's information to template

I'm using Django with MySQL. I have a Post model. If I execute Post.object.all() in python shell, it shows all the Post objects. However, when I add posts = Post.objects.all() return ...
0
votes
1answer
30 views

how to import data to the database(mysql) of django from txt file

I know how to import txt files to mysql. But since I'm using Django now, I created a model called dataset. How can I import the data.txt to the dataset model in Django? Each row of the data.txt file ...

1 2 3 4 5 83
15 30 50 per page