Vous n'êtes pas identifié(e).
Bonjour,
J'essaie de connecter django à un serveur ibm iserie (pub400.com pour ceux qui connaisse)
J'ai donc réussi certain trucs :
python manage.py runserver fonctionne,
Par contre
python manage.py inspectdb ne veut vraiment rien savoir, je désespère !!!!
python manage.py test idem
Voici l'erreur qui revient systématiquement malgré toutes les variations de config faites.
python manage.py inspectdb
OperationalError: ibm_db_dbi::OperationalError: [IBM][CLI Driver] SQL30081N
A communication error has been detected.
Communication protocol being used: "TCP/IP".
Communication API being used: "SOCKETS".
Location where the error was detected: "xxx.xxx.xxx.xxx".
Communication function detecting the error: "connect".
Protocol specific error code(s): "10061", "*", "*". SQLSTATE=08001\r SQLCODE=-30081
Si quelqu'un peut m'aider ce sera vraiment très cool, car je n'ai plus vraiment d'idée. en vous remerciant par avance.
Ou même me dire si quelqu'un à déjà réussi !!
Mon environnement
Python 2.7
Django 1.5.12
IBM_DB_DJANGO 1.0.6 Correspond au .egg => PYTHONPATH => ibm_db_django-1.0.6-py2.5.egg
Ma config
DATABASES = {
'default': {
'ENGINE': 'ibm_db_django',
#'DBALIAS': 'PUB400', Avec ou sans DBALIAS
'NAME': 'PUB400', Avec ou sans
'USER': 'xxx',
'PASSWORD': 'xxx',
'HOST': 'xxx',
'PROTOCOL': 'TCPIP',
'PORT': '50000',
'PCONNECT': True,
}
}
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.flatpages',
'django.contrib.redirects',
'django.contrib.sites',
'django.contrib.comments',
'monapp',
)
LANGUAGE_CODE = 'fr-fr'
TIME_ZONE = 'Europe/Paris'
USE_I18N = True
USE_L10N = True
USE_TZ = False
Hors ligne