Tagged Questions
0
votes
1answer
19 views
django and mysql setup in production
I'm trying to setup mysql on my production server(Ubuntu 12.04). I followed this tutorial http://www.saltycrane.com/blog/2008/07/how-set-django-mysql-ubuntu-hardy/ Then I run python manage.py syncdb ...
0
votes
2answers
137 views
./manage.py test of Django 1.4 gives a Thing2Literal import not found on google appengine
I followed the steps here https://developers.google.com/cloud-sql/docs/django and it ran well with django 1.3.1. Now up to Django 1.4 and gives a funny stack trace. I would paste the relevant part of ...
0
votes
1answer
48 views
Prevent MySQL-Python from inserting quotes around database name parameter
I'm working on a project that requires me to programmatically create MySQL users from a django app. I can create the users just fine:
from django.db import connection, transaction
cursor = ...
2
votes
1answer
80 views
How can I detect total MySQL server death from Python?
I've been doing some HA testing of our database and in my simulation of server death I've found an issue.
My test uses Django and does this:
Connect to the database
Do a query
Pull out the network ...
0
votes
1answer
69 views
Tried to import _mysql through MySQLdb and get the error
I'm trying to use MySQLdb and when I try to import it I get the following error. Any thoughts? I'm currently using an ubuntu instance on aws.
>>> import MySQLdb
Traceback (most ...
0
votes
1answer
78 views
Convert MySQLdb return from tuple to string in Python
I am new to MySQLdb. I need to read values from a pre-defined database which is stored in MySQL. My problem is when values are collected, they are in tuple format, not string format. So my question: ...
0
votes
1answer
181 views
Installing MySQLdb 1.2.3 with Python For Django on Mac OSX?
I am a beginner Java developer and newbie to Python and I want to install Django and from what i understood that i need to install MySQLdb 1.2.3 with Python and I have MySQL already installed so I am ...
0
votes
2answers
202 views
ubuntu mysqldb not installed properly
I'm running the following commands and get the following error:
root# sudo python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 14, in <module>
...
0
votes
0answers
107 views
MySQLdb not running on Mac 10.7
I am trying to install MySQL-Python (MySQLdb) locally on my Mac and I am having trouble. I have been working on this for HOURS and I continue to get this error:
>>> import MySQLdb
...
1
vote
1answer
138 views
Django + Apache with mod_wsgi. Unable to load MySQLdb
I currently set up a virtual host on Apache to try to host my Django project at django.localhost
My apache configurations are correct:
hobbes3@hobbes3:~/Sites/mysite$ apachectl configtest
Syntax OK
...
1
vote
1answer
167 views
mysql server gone away (error #2006)
Running Django 1.3 over wsgi on apache 2.2.9/Debian, and using mysql 5.0.51a I encountered the following problem, both in the deployed django installation and in both development servers we had ...
0
votes
2answers
174 views
How to setup up PYTHON_EGG_CACHE environment variable on Mac?
I am trying to setup Django to use MySQL. I am getting the following error when I type in localhost/mysite
ExtractionError at /
Can't extract file(s) to egg cache
The following error occurred while ...
0
votes
1answer
54 views
Django: “show databases” functionality?
I have a weird legacy database use-case: I have multiple databases, with (1) exactly the same schema, but (2) very different datasets. Databases, entire databases, with this schema, are being added ...
1
vote
1answer
43 views
Composite database in django
I have a database, financials that has models created in django. In addition, it has other tables that were created for a python script that uses MySQLdb, and thus not in django. The python script ...
1
vote
1answer
284 views
Django Dev Environment Broken Following Mac OS 10.7 Reinstall
I recently experienced trouble with my hard drive and used Disk Utilities to reinstall Mac OS 10.7 Lion.
When I went to run my Django app, I got the following errors:
################ BEGIN ERRORS ...