Alex Boyce Posted August 1, 2011 Posted August 1, 2011 I am having a problem getting Python/Django and MySQL to place nice together. I got the database set up (correctly, I believe). If I do not set the database engine in the settings.py file, most of my views work properly. If I try to access a view that requires the database, I get a nice Django exception page telling me that I did not set the database engine, which is expected. If I set the database engine as follows: (password line omitted) DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = 'aboyce_klickfu' # Or path to database file if using sqlite3. DATABASE_USER = 'aboyce_klickfu' # Not used with sqlite3. I just get a 500 error on all my pages telling me that the wsgi script threw an exception, but no details as to what the actual problem is. CPanel username: aboyce Site: www.klickfu.heliohost.org Any help would be appreciated. Regards, Alex Boyce
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now