thanks,I have solved it by using python2.5.
thank you again.

On 9月1日, 下午8时18分, mrsource <mrsou...@gmail.com> wrote:
> I suppose that you have downloaded the latest version of psycopg2:
> psycopg2-2.0.12.win32-py2.6-pg8.4.0-release.exe.
> In that case use the previous release psycopg2-2.0.10.win32-py2.6-
> pg8.3.7-release.exe that you can find 
> herehttp://stickpeople.com/projects/python/win-psycopg/index.2.0.9.html,
> the 2.0.12 release is bugged.
> I have the same environment configuration plus postgresql 8.4 and all
> works well.
>
> On 1 Set, 11:33, "tungliang.han...@gmail.com"
>
>
>
> <tungliang.han...@gmail.com> wrote:
> > hi,guys
> > According to the django documents(http://docs.djangoproject.com/en/dev/
> > topics/install/),I have downloaded the psycopg(http://stickpeople.com/
> > projects/python/win-psycopg/) and switched the database in the
> > settings. However,when I sync the database or run server,there are
> > some error occurred.
> > my OS is windows xp sp2,and python2.62. Django 1.1
> > Thanks a million
>
> > the error info:
> > C:\hello>manage.py syncdb
> > Traceback (most recent call last):
> >   File "C:\hello\manage.py", line 11, in <module>
> >     execute_manager(settings)
> >   File "C:\Python26\lib\site-packages\django\core\management
> > \__init__.py", line
> > 362, in execute_manager
> >     utility.execute()
> >   File "C:\Python26\lib\site-packages\django\core\management
> > \__init__.py", line
> > 303, in execute
> >     self.fetch_command(subcommand).run_from_argv(self.argv)
> >   File "C:\Python26\lib\site-packages\django\core\management\base.py",
> > line 195,
> >  in run_from_argv
> >     self.execute(*args, **options.__dict__)
> >   File "C:\Python26\lib\site-packages\django\core\management\base.py",
> > line 221,
> >  in execute
> >     self.validate()
> >   File "C:\Python26\lib\site-packages\django\core\management\base.py",
> > line 249,
> >  in validate
> >     num_errors = get_validation_errors(s, app)
> >   File "C:\Python26\lib\site-packages\django\core\management
> > \validation.py", lin
> > e 22, in get_validation_errors
> >     from django.db import models, connection
> >   File "C:\Python26\lib\site-packages\django\db\__init__.py", line 41,
> > in <modul
> > e>
> >     backend = load_backend(settings.DATABASE_ENGINE)
> >   File "C:\Python26\lib\site-packages\django\db\__init__.py", line 17,
> > in load_b
> > ackend
> >     return import_module('.base', 'django.db.backends.%s' %
> > backend_name)
> >   File "C:\Python26\lib\site-packages\django\utils\importlib.py", line
> > 35, in im
> > port_module
> >     __import__(name)
> >   File "C:\Python26\lib\site-packages\django\db\backends
> > \postgresql_psycopg2\bas
> > e.py", line 22, in <module>
> >     raise ImproperlyConfigured("Error loading psycopg2 module: %s" %
> > e)
> > django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
> > module: DLL
> > load failed:
--~--~---------~--~----~------------~-------~--~----~
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