Gaus wrote: > Hi All > I am developing my first-Django based project by myself. Wanted to use > Postgresql with Psycopg2 & dont want to use Sqlite or Mysql for that > matter. I have a problem which I cant rectify. My development > environment is as follows : > > 1. Ubuntu 8.04 > 2. Python2.5 - compiled & installed\ > 3. Apache2_2.2.4-3ubuntu0.1_all.deb - Downloaded and Installed > 3. Mod_Python-3.3.tgz - Installed & configured > 4. Postgresql installed - using 'sudo apt-get install postgresql-8.3 > postgresql-client-8.3 > postgresql-contrib-8.3 > 5. Psycopyg2-2.0.8.tar.gz - Downloaded & Installed. > > I created a sample Django project and modified the settings.py as > follows : > > DATABASE_ENGINE = 'postgresql_psycopg2' # db adaptor > DATABASE_NAME = 'mydb' # which I created in postgresql > DATABASE_USER = 'postgres' > DATABASE_PASSWORD = 'pgadmin' > DATABASE_HOST = '' > DATABASE_PORT = '' > > Now the problem is when I try to run the syncdb at the terminal I get > the following errors. > xterm : python manage.py syncdb > > Traceback (most recent call last): > File "manage.py", line 11, in <module> > execute_manager(settings) > File "/usr/local/lib/python2.5/site-packages/django/core/ > management.py", line 1672, in execute_manager > execute_from_command_line(action_mapping, argv) > File "/usr/local/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/local/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/local/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/local/lib/python2.5/site-packages/django/db/backends/ > postgresql_psycopg2/base.py", line 12, in <module> > raise ImproperlyConfigured, "Error loading psycopg2 module: %s" % > e > django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 > module: No module named psycopg2 > > PLEASE HELP !!! to sort out this problem. > Thanks Regards > ++ > > > > >
Why you didn't use the ubuntu psycopg2 package python-psycopg2 ?? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---