Hi! I'm trying to host my Django1.6 project, developed with Python3.4, on my Pythonanywhere domain.
On my localhost, I was using Pymysql to connect to the MySQL database, because MySQLdb lacks Python3 support sadly. On my manage.py, I've done this to make it work on my localhost :
try:
import pymysql
pymysql.install_as_MySQLdb()
except ImportError:
pass
When I try to load my site I've got his error :
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/django/db/backends/mysql/base.py", line 14, in <module>
import MySQLdb as Database
ImportError: No module named 'MySQLdb'
How can I make my database works with Python3 on Pythonanywhere? Thanks a lot in advance
EDIT: Nevermind, I didn't see this wiki page : https://www.pythonanywhere.com/wiki/UsingMySQL