我试图安装 Saleor 但在 ./manage.py 迁移期间我得到
我做了超级用户,但它不起作用。
回溯(最后一次调用):文件“./manage.py”,第 10 行,在 execute_from_command_line(sys.argv) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/ django/core/management/ init .py”,第 381 行,在 execute_from_command_line utility.execute() 文件中“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/core/management/在里面.py”,第 375 行,在执行 self.fetch_command(subcommand).run_from_argv(self.argv) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/core/management /base.py”,第 316 行,在 run_from_argv self.execute(*args, **cmd_options) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/core/management /base.py”,第 353 行,在执行输出 = self.handle(*args, **options) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/core /management/base.py”,第 83 行,包装 res = handle_func(*args, **kwargs) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/core /management/commands/migrate.py”,第 203 行,在句柄 fake_initial=fake_initial,文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/db/migrations/executor.py”,第 117 行,迁移状态 = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial) 文件“/home/honza/projects /saleor/venv/lib/python3.6/site-packages/django/db/migrations/executor.py”,第 147 行,在 _migrate_all_forwards 状态 = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/db/migrations/executor.py”,第 244 行,在 apply_migration state = migration.apply(state, schema_editor) 文件中“ /home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/db/migrations/migration.py”,第 124 行,在应用 operation.database_forwards(self.app_label, schema_editor, old_state, project_state ) 文件 ”/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/contrib/postgres/operations.py",第 19 行,在 database_forwards schema_editor.execute("CREATE EXTENSION IF NOT EXISTS %s" % schema_editor.quote_name(self.name)) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/db/backends/base/schema.py”,第 133 行,在执行 cursor.execute(sql, params) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/db/backends/utils.py”,第 100 行,在执行 return super ().execute(sql, params) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/db/backends/utils.py”,第 68 行,在执行中返回 self ._execute_with_wrappers(sql, params, many=False, executor=self._execute) 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/db/backends/utils.py”,第 77 行,在 _execute_with_wrappers 返回 executor(sql, params, many, context) 文件“/home/honza/projects/saleor/venv/lib/python3. 6/site-packages/django/db/backends/utils.py”,第 85 行,在 _execute 中返回 self.cursor.execute(sql, params) 文件“/home/honza/projects/saleor/venv/lib/python3. 6/site-packages/django/db/utils.py”,第 89 行,在从 exc_value 文件“/home/honza/projects/saleor/venv/lib/python3.6/site-packages/django/db/backends/utils.py”中退出 raise dj_exc_value.with_traceback(traceback),第 85 行,在 _execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError:权限被拒绝创建扩展“hstore”提示:必须是超级用户才能创建此扩展。