I, too have just reloaded my xampp installation. I'm able to get the
first few steps of the install per 
http://www.djangoproject.com/documentation/tutorial01/,
but when I start the 'runserver' I get the following:

[EMAIL PROTECTED]:~/Projects/SSG$ python manage.py runserver
Validating models...
Skipping validation because things aren't configured properly.
Django version 0.96, using settings 'SSG.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

This all started when I didn't see the above before, because the next
step was to 'syncdb' after I had edited the setting.py file thusly:

# Django settings for SSG project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '[EMAIL PROTECTED]'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'mysql'           # 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = 'django_test'             # Or path to database file
if using sqlite3.
DATABASE_USER = 'django_test'             # Not used with sqlite3.
DATABASE_PASSWORD = 'django_test'         # 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.

# Local time zone for this installation. Choices can be found here:
# 
http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
# although not all variations may be possible on all operating
systems.
# If running in a Windows environment this must be set to the same as
your
# system time zone.
TIME_ZONE = 'America/Los Angeles'

# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as
not
# to load the internationalization machinery.
USE_I18N = True

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = ''

# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com";
MEDIA_URL = ''

# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: "http://foo.com/media/";, "/media/".
ADMIN_MEDIA_PREFIX = '/media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'test'

# List of callables that know how to import templates from various
sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

ROOT_URLCONF = 'SSG.urls'

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/
django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
)


[EMAIL PROTECTED]:~/Projects/SSG$ python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/lib/python2.5/site-packages/django/core/management.py",
line 1672, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File "/usr/lib/python2.5/site-packages/django/core/management.py",
line 1571, in execute_from_command_line
    action_mapping[action](int(options.verbosity),
options.interactive)
  File "/usr/lib/python2.5/site-packages/django/core/management.py",
line 486, in syncdb
    from django.db import connection, transaction, models,
get_creation_module
  File "/usr/lib/python2.5/site-packages/django/db/__init__.py", line
11, in <module>
    backend = __import__('django.db.backends.%s.base' %
settings.DATABASE_ENGINE, {}, {}, [''])
  File "/usr/lib/python2.5/site-packages/django/db/backends/mysql/
base.py", line 12, in <module>
    raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
module: No module named MySQLdb

I am able to log into mysql from the command line as the root user,
which is all I currently have set up besides the test db per the
settings file.

Should I reinstall Django to make this all go away?

Ubuntu Feisty OS with all the current updates.

Thanks!


On Sep 7, 4:15 am, Damodhar <[EMAIL PROTECTED]> wrote:
> Hai ,
>
> I,read the django documentation , am very interest to learn django. so
> iwant to confiugure Apache (mod_python), But i don't know how to
> configure. now am working in php 
> mysql.usingXAMPP(http://www.apachefriends.org/en/xampp-windows.html)
> (PHP + Mysql + Apache) as a server installed in my local machine.
>
> How to configure Apache mod_python into my apache. if any thing want
> to install patch or any extra files to apache or change any lines to
> enabled the mod_python or add any lines in config files or any other
> files which line i want to edit
>
> please help me ( I am very interest to learn )
>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to