3
votes
1answer
126 views

Order by records with random mix in MySQL queries

I am looking for a special kind of requirement from my query on MySQL database where I want to apply order by in a different manner. E.g. In a DB with the fields user_id and user_rating and ...
1
vote
1answer
345 views

django with mysql what does 'maximum number of connections'?

I am writting simple application which django that can be used internally inside my office. probably 1000 people i say. I dont have any session handling, user handling. It is just a store/view process ...
0
votes
1answer
47 views

Django mysql error in ubuntu

I have started to learn django and python and also I am new in using ubuntu. for my first program I need mysql so I already have installed it and when I use mysql command I have this result. ...
0
votes
1answer
152 views

Django1.6, will transaction works for raw SQL?

Examples from offical document from django.db import connection def my_custom_sql(self): cursor = connection.cursor() cursor.execute("UPDATE bar SET foo = 1 WHERE baz = %s", [self.baz]) ...
0
votes
0answers
35 views

Optimizing queries in Djano

I am creating a site using django. For testing I have created a database with 1 million rows each containing information(uploaders, orientation, description, and a handful of others) about images on ...
0
votes
1answer
228 views

Django form submits, but won't save to database

I'm using a ModelForm, but not using Django's auth system. I am also trying to set a random password, but have commented out that bit because I'm not sure if it is causing issues. Currently, the ...