Thanks Adrian,
Thats taken me about half way, the various django-admin commands work now,
but when I attempt to actually log into the admin site I get an
'incorrect username or password'
message. Ive checked the auth_users table, and its there in mysql. And I
created a second user
just to be sure.
This message shows up every time in my errors.log
[Mon Aug 15 08:52:52 2005] [notice] mod_python: (Re)importing module
'django.core.handlers.modpython'
Any ideas?
Thanks again
Sean
Adrian Holovaty wrote:
Sean,
"svn update" your code and try again. Problem should be solved now.
Adrian
On 8/14/05, Sean O'Donnell <[EMAIL PROTECTED]> wrote:
Hi There,
Im getting an error when trying to follow tutorial 1 when using mysql
when i try to run
django-admin.py init --settings=wasteland.settings.main
(Im using tutorial 1 as a template to start a new app called wasteland)
I get
django.core.exceptions.ImproperlyConfigured: Could not load database
backend: cannot import name CursorNW. Is your DATABASE_ENGINE setting
(currently, 'mysql') spelled correctly? Available options are: 'mysql',
'postgresql', 'sqlite3'
My main.py looks like
DATABASE_ENGINE = 'mysql' # 'postgresql', 'mysql', or 'sqlite3'.
DATABASE_NAME = 'xxxxx' # Or path to database file if using
sqlite3.
DATABASE_USER = 'xxxxx' # Not used with sqlite3.
DATABASE_PASSWORD = 'xxxxx' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not
used with sqlite3.
I ran a svn update, which has had no effect, and I just checked another
app which i had running with the same config, and realized I cant log
into its admin site any more, it appears to be having mysql problems as
well.
Anyone have any ideas?
Thanks
Sean