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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.