Hi All,
 
I m new to django.
I m getiing problem with Tutorial-1.
------------------------------------------------------------------------------------------------------------------------------------------------------
[[EMAIL PROTECTED] ttut]# python manage.py runserver
Validating models...
Unhandled exception in thread started by <function inner_run at 0xb7c04224>
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/django/core/management.py", line 757, in inner_run
    validate()
  File "/usr/lib/python2.4/site-packages/django/core/management.py", line 741, in validate
    num_errors = get_validation_errors(outfile)
  File "/usr/lib/python2.4/site-packages/django/core/management.py", line 634, in get_validation_errors
    import django.models
  File "/usr/lib/python2.4/site-packages/django/models/__init__.py", line 1, in ?
    from django.core import meta
  File "/usr/lib/python2.4/site-packages/django/core/meta/__init__.py", line 3, in ?
    from django.core import db
  File "/usr/lib/python2.4/site-packages/django/core/db/__init__.py", line 23, in ?
    raise ImproperlyConfigured, "Could not load database backend: %s. Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? Available options are: %s" % \
django.core.exceptions.ImproperlyConfigured : Could not load database backend: /usr/lib/python2.4/site-packages/_mysql.so: undefined symbol: __pure_virtual. Is your DATABASE_ENGINE setting (currently, 'mysql') spelled correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql', 'sqlite3'
 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I m using my sql and root has no passowrd.
-----------------------------------settings.py--------------------------------------------------------------------
 
DATABASE_ENGINE = 'mysql' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = 'mysql'             # Or path to database file if using sqlite3.
DATABASE_USER = 'root'             # Not used with sqlite3.
DATABASE_PASSWORD = ''         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Please help.
Thanks in advance.
 
rsj
 

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to