You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 23, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 23, 2020. It is now read-only.
→ virtualenv --python=/usr/local/bin/python3.6 venv
zsh: command not found: virtualenv
→ ls /usr/local/bin/pyenv-virtualenv --python=/usr/local/bin/python3.6 venv
ls: --python=/usr/local/bin/python3.6: No such file or directory
ls: venv: No such file or directory
/usr/local/bin/pyenv-virtualenv
→ python3 manage.py migrate
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 342, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 89, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 20, in __init__
self.loader = MigrationLoader(self.connection)
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 49, in __init__
self.build_graph()
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 176, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations
self.ensure_schema()
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/recorder.py", line 52, in ensure_schema
if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):
File "/usr/local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 231, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/usr/local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 204, in _cursor
self.ensure_connection()
File "/usr/local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/usr/local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 170, in connect
conn_params = self.get_connection_params()
File "/usr/local/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 157, in get_connection_params
"settings.DATABASES is improperly configured. "
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the NAME value.
Activity
0xbug commentedon Nov 20, 2017
pip3.6 install virtualenvphoenixg commentedon Nov 20, 2017
现在报这个错误了:
0xbug commentedon Nov 20, 2017
安装postgresql了吗
phoenixg commentedon Nov 20, 2017
之前没有安装,现在我通过
brew install postgresql安装好了。 执行第二条同步命令时报错:可是我从没连过 postgresql,麻烦问一下客户端连接要怎么填写连接参数?
phoenixg commentedon Nov 20, 2017
解决了, 我好像都装好了, 现在访问
http://127.0.0.1:8000/有界面了, 但是要上传 har 文件, 怎么配合 charles 使用呢?0xbug commentedon Nov 20, 2017
选择har
Mustard404 commentedon May 17, 2018
→ python3 manage.py migrate
哥们,这个怎么解决的