I am working with .90 and when I run django-admin.py init I get this
error on the command line:

Error: The database couldn't be initialized.
an integer is required

I was thinking that it was a port number or host, but I get it if they
are filled or blank.  Please help!!!

setting.py
---------------------------------------------------------------------
 Django settings for intraweb project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    ('Bryant Ross', '[EMAIL PROTECTED]'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'mysql' # 'postgresql', 'mysql', 'sqlite3' or
'ado_mssql'.
DATABASE_NAME = 'time'             # Or path to database file if using
sqlite3.
DATABASE_USER = 'bryant'             # Not used with sqlite3.
DATABASE_PASSWORD = 'Startan3w'         # Not used with sqlite3.
DATABASE_HOST = '10.0.0.20'             # 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. All choices can be found
here:
# 
http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
TIME_ZONE = 'America/Chicago'

# 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

# 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 = '@k$u_+75_2e_y%i%el*n%l!4f_&^bmifxjn_z)[EMAIL PROTECTED])ryi@'

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

MIDDLEWARE_CLASSES = (
    "django.middleware.common.CommonMiddleware",
    "django.middleware.sessions.SessionMiddleware",
    "django.middleware.doc.XViewMiddleware",
)

ROOT_URLCONF = 'intraweb.urls'

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates".
    "/home/dev/intraweb/templates"
    "/home/bryant/Django-0.90/django-.90_templates"
    "/home/bryant/django_templates"
)

INSTALLED_APPS = (
    #'django.contrib.auth',
    #'django.contrib.contenttypes',
    #'django.contrib.sessions',
    #'django.contrib.sites',
    'intraweb.apps.timesheets',
    'django.contrib.admin',
)
----------------------------------------------------------------------------------------------
I get this error in the browser:
 File "/var/lib/python-support/python2.5/MySQLdb/connections.py", line
176, in __init__
    super(Connection, self).__init__(*args, **kwargs2)

TypeError: an integer is required


connections.py

client_flag = kwargs.get('client_flag', 0)
        client_version = tuple([ int(n) for n in
_mysql.get_client_info().split('.')[:2] ])
        if client_version >= (4, 1):
            client_flag |= CLIENT.MULTI_STATEMENTS
        if client_version >= (5, 0):
            client_flag |= CLIENT.MULTI_RESULTS

        kwargs2['client_flag'] = client_flag

        super(Connection, self).__init__(*args, **kwargs2)    line
176.......

        self.encoders = dict([ (k, v) for k, v in conv.items()
                               if type(k) is not int ])

        self._server_version = tuple([ int(n) for n in
self.get_server_info().split('.')[:2] ])
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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