Django 1.9 with Python 3.4 with MySQL support (Fedora) -


the question simple:

how can used mysql database django 1.9 + python 3.4 in fedora? i'm using virtualenv if adds more info.

i tried installing mysqlclient didn't work. , don't know how go mysql connector python described here: mysql db api drivers

when try install mysqlclient pip fails with: oserror: mysql_config not found.

for python2

try steps:

yum install mysql mysql-server chkconfig --levels 235 mysqld on /etc/init.d/mysqld start # create username , password in mysql # create db in mysql yum install mysql-python 

for python2 or python3:

pip install mysqlclient sudo apt-get install python3-dev libmysqlclient-dev  in settings.py databases = {     'default': {         'engine': 'django.db.backends.mysql',         'name': db name,         'user': username,         'password': password,         'host': 'localhost',         'port': 80,     } } 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo