Django 1.8 and MySQL, how to connect??

127 views
Skip to first unread message

eduardo.c...@gmail.com

unread,
May 20, 2015, 11:05:17 AM5/20/15
to django...@googlegroups.com
Hi, I never used Django with MySQL data base before. Someone can tellme how I can (if it's possible) connect my Django web site with a data base in MySQL. I tryed to install "mysqlclient-1.3.6-cp27-none-win32.whl" using pip (pip install mysqlclient-1.3.6-cp27-none-win32.whl), but I recived an error. Thanks for help.

pip error log report:
C:\Python34\Scripts\pip run on 05/20/15 10:13:16
mysqlclient136.whl is not a valid wheel filename.
Exception information:
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python34\lib\site-packages\pip\commands\install.py", line 257, in run
    InstallRequirement.from_line(name, None))
  File "C:\Python34\lib\site-packages\pip\req.py", line 165, in from_line
    wheel = Wheel(link.filename) # can raise InvalidWheelFilename
  File "C:\Python34\lib\site-packages\pip\wheel.py", line 467, in __init__
    raise InvalidWheelFilename("%s is not a valid wheel filename." % filename)
pip.exceptions.InvalidWheelFilename: mysqlclient136.whl is not a valid wheel filename.

Daniel Roseman

unread,
May 20, 2015, 2:13:43 PM5/20/15
to django...@googlegroups.com
That's not how you install wheels. Just do `pip install mysqlclient` and it will choose the correct version for your OS and architecture.
--
DR.
Reply all
Reply to author
Forward
0 new messages