-2

I'm setting up a MySQL database with Django.

python manage.py runserver.

Worked, then I started editing my database in summertime.settings.py [summertime is the site name]

here is my user:

user: TestUser password: password host: 127.0.0.1

all privileges

My MAMP is set to port: 3306

here is my settings.py

enter image description here

When I run $ python manage.py syncdb I recieve the following errors:

enter image description here

thanks

2
  • -1 for unreadable screenshots instead of simply pasting the text. Commented Jul 16, 2013 at 8:15
  • You can click on the screenshots for high quality images. I don't care about points, but just FYI Commented Jul 16, 2013 at 16:29

1 Answer 1

4

You will need to install the MySQLdb driver

pip install mysql-python

Sign up to request clarification or add additional context in comments.

4 Comments

Tried that, and returned ----> Referenced from: /Users/msmith/Documents/dj/venv/lib/python2.7/site-packages/_mysql.so Reason: image not found
You might need to install the MySQL development libraries for your system
What do you mean by that? I have in my pip freeze: MySQL-python==1.2.4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.