Ahmed,
For connecting Django to MySQL, I use MySQL-python, installed
via pip as:
pip install MySQL-python
My settings file contains:
DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.mysql',
'NAME' : 'name of our database',
'USER' : 'username to access the database',
'PASSWORD' : 'password to access the database',
# Required for Windows; Harmless (same as default) for Linux
'HOST' : '127.0.0.1',
# Required for Windows; Harmless (same as default) for Linux
'PORT' : '3306',
},
--Fred
------------------------------------------------------------------------
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
------------------------------------------------------------------------
On 9/11/14 9:34 AM, Muhammad Ahmed wrote:
Hi,
I have been trying to launch my Django Model using a tutorial. but
unfortunately the tutorial is about Django 1.1.
Kindly guide me that what configuration (in setting.py) will be
required if I use Python27 / Django 1.5.1 with Mysql.
please also guide towards the appropriate "MySql Adoptor" for Django
1.5.1.
Thanks in advance :)
Ahmed
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/881464cf-d4aa-4934-9915-3830ebafd4e6%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/881464cf-d4aa-4934-9915-3830ebafd4e6%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5411CEF6.7090702%40bristle.com.
For more options, visit https://groups.google.com/d/optout.