Tuesday, June 22, 2010

RE: Django-Mysql

I had no problem configuring it under CentOs, have not tried Windows (yet) but here's my settings file

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mds30',
'USER': '', # Not used
'PASSWORD': '', # Not used
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}

I did create the database manually; no big deal.

-----Original Message-----
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of euan.goddard@googlemail.com
Sent: Tuesday, June 22, 2010 5:43 AM
To: Django users
Subject: Re: Django-Mysql

Do you absolutely need to use MySQL? I've found for development that
sqlite is the most hassle-free. I use OS X for development at home and
it is the easiest option. The only drawback is that if you have
multiple clients accessing the DB you can get locking issues. If it's
just you, then you're sorted.

I once installed Django with MySQL on Windows and know I had to mess
around a fair bit to get it to work, but that was quite a while ago.

Good luck, Euan

On Jun 22, 8:02 am, Eduan <bekker.ed...@gmail.com> wrote:
> When installing Django-Mysql i get this error. I thought it was
> because I didn't have setuptools. But now I downloaded it and
> installed it. I am running windows 7 home basic. Here is all the apps
> versions:
>
> Django-1.2.1
> MySQL-python-1.2.3
> Python 2.6
> mysql-5.5.3-m3-win32
>
> This is the error I get:
>
> setup_windows.py", line 7, in get_config
> serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,
> options['registry_key'])
> WindowsError: [Error 2] The system cannot find the file specified
>
> Any reply would be appreciated.
>
> Regards
> Eduan Bekker

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment