![]() sudo apt-get install postgresql-server-dev-9. Step by step that I use: - sudo apt-get install python-dev Raise Improperl圜onfigured("Error loading psycopg module: %s" % e)ĭ圜onfigured: Error loading psycopg module: No moĬan someone give me a clue on what is going on? Return import_module('.base', backend_name)įile "C:\Python27\lib\site-packages\django\db\backends\postgresql\base.py", li ![]() Module = import_module('%s.mands.%s' % (app_name, name))įile "C:\Python27\lib\site-packages\django\utils\importlib.py", line 35, in imįile "C:\Python27\lib\site-packages\django\core\management\commands\syncdb.py"įrom import custom_sql_for_model, emit_post_sync_įile "C:\Python27\lib\site-packages\django\core\management\sql.py", line 6, inįile "C:\Python27\lib\site-packages\django\db\_init_.py", line 77, in Ĭonnection = connectionsįile "C:\Python27\lib\site-packages\django\db\utils.py", line 92, in _getitemįile "C:\Python27\lib\site-packages\django\db\utils.py", line 33, in load_back Klass = load_command_class(app_name, subcommand) Self.fetch_command(subcommand).run_from_argv(self.argv) Step 1 Installing PostgreSQL Ubuntu’s default repositories contain Postgres packages, so you can install these using the apt packaging system. For example when I run manage.py syncdb, I'm getting: C:\xampp\htdocs\djangodir>python manage.py syncdbįile "C:\Python27\lib\site-packages\django\core\management\_init_.py", line I'm configuring a Django project using a PostgreSQL database engine backend, But I'm getting errors on each database operation. Lets now create the Ansible playbook First, we need to install the database itself, along with psycopg2-binary Python library that will allow us to use Ansible PostgreSQL modules postgresqldb, postgresqluser, postgresqlprivs and postgresqlpghba.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |