I have the python-psycopg2 package installed and the settings for my engine 
are 'django.db.backends.postgresql_psycopg2' and I am still getting the 
error. 

When I do "python manage.py shell" I get the error "Error: No module named 
psycopg".

The contents of manage.py are the following:
from django.core.management import execute_manager
import settings # Assumed to be in the same directory.

if __name__ == "__main__":
    execute_manager(settings)


 

> Hi! 
>
> Psycopg2 is a PostgreSQL database adapter for the Python programming 
> language. 
> Install "python-psycopg2" package. 
>
> The value for ENGINE in the settings.py should be 
> "django.db.backends.postgresql_psycopg2" 
>
> You can test your database configuration by typing the following commands. 
> Open the shell by typing "$ python manage.py shell" 
>
>  >>> from django.db import connection 
>  >>> cursor = connection.cursor() 
>
> If nothing happens, your database is configured properly. 
>
> Thanks. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/fFr_0gri9BkJ.
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