Hi, 

Well, are u using a MySQL database or sqilite ?!
Of course that's what it depends on wether to use mysql oder sqlite driver.
Mabe you could give us a little more information about your DB

cheers


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT Developer 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 


-----Ursprüngliche Nachricht-----

Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im 
Auftrag von r_bloodlife
Gesendet: Freitag, 06. Mai 2011 10:16
An: Django users
Betreff: Problem in Configuring the database

Hello,
I'm a beginner trying to build an application..
please help in correcting these errors..
I'm Confused, whether to use "MySql" or "Sqllite3"


"rahul@linux-cgdq:~/myproject/prj> ls -l
total 36
-rw-r--r-- 1 rahul users  148 2011-05-04 23:36 current_datetime.py
-rw-r--r-- 1 rahul users    0 2011-05-04 22:52 __init__.py
-rw-r--r-- 1 rahul users  131 2011-05-04 22:53 __init__.pyc
-rw-r--r-- 1 rahul users  503 2011-05-04 22:52 manage.py
-rw-r--r-- 1 rahul users 5040 2011-05-06 13:33 settings.py
-rw-r--r-- 1 rahul users 2798 2011-05-04 23:29 settings.pyc
-rw-r--r-- 1 rahul users  555 2011-05-04 23:35 urls.py
-rw-r--r-- 1 rahul users  278 2011-05-04 22:53 urls.pyc
-rw-r--r-- 1 rahul users  209 2011-05-04 23:31 views.py
rahul@linux-cgdq:~/myproject/prj> python manage.py runserver
Validating models...

Unhandled exception in thread started by <bound method
Command.inner_run of
<django.contrib.staticfiles.management.commands.runserver.Command
object at 0x82e790c>>
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/django/core/management/
commands/runserver.py", line 88, in inner_run
    self.validate(display_num_errors=True)
  File "/usr/local/lib/python2.6/site-packages/django/core/management/
base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/local/lib/python2.6/site-packages/django/core/management/
validation.py", line 103, in get_validation_errors
    connection.validation.validate_field(e, opts, f)
  File "/usr/local/lib/python2.6/site-packages/django/db/backends/
mysql/validation.py", line 14, in validate_field
    db_version = self.connection.get_server_version()
  File "/usr/local/lib/python2.6/site-packages/django/db/backends/
mysql/base.py", line 338, in get_server_version
    self.cursor()
  File "/usr/local/lib/python2.6/site-packages/django/db/backends/
__init__.py", line 252, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/usr/local/lib/python2.6/site-packages/django/db/backends/
mysql/base.py", line 322, in _cursor
    self.connection = Database.connect(**kwargs)
  File "/usr/lib/python2.6/site-packages/MySQLdb/__init__.py", line
71, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/MySQLdb/connections.py", line
170, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local
MySQL server through socket '/var/run/mysql/mysql.sock' (2)")

"

-- 
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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to