I have tried 3 ways to access the database:
- [WORKS] from bash shell:
~$ mysql -u <username> -h mysql.server -p '<username>$<db_name>' - [WORKS]
~$ python manage.py syncdb - [DOES NOT WORK]
- Syncdb
- Reload app
- Go to url
Error:
_mysql_exceptions.OperationalError: (1045, "Access denied for user '<username>'@'ip-10-186-190-7.ec2.internal' (using password: NO)")
Settings:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '<username>$<db_name>',
'USER': '<username>',
'PASSWORD': <password>,
'HOST': 'mysql.server',
'PORT': '3306',
}
}
Pythonanywhere's wsgi module is loading the correct settings script. The database password has been set and checked in the 'Databases' tab.
I am using Django 1.7, Python 3.4, mysqlclient 1.3.4, inside a virtualenv.
Thanks for your help.
[Edit]:
The first error is actually:
AttributeError: 'SessionStore' object has no attribute '_session_cache'
I don't know if this is meaningful.