Jump to content

Django and MySQL problem


Alex Boyce

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...