Comments (7)
pip3.6 install virtualenv
from sqliscanner.
现在报这个错误了:
→ pip3.6 install -r requirements.txt
Collecting celery==3.1.23 (from -r requirements.txt (line 1))
Downloading celery-3.1.23-py2.py3-none-any.whl (520kB)
100% |████████████████████████████████| 522kB 1.3MB/s
Collecting Django==1.9 (from -r requirements.txt (line 2))
Downloading Django-1.9-py2.py3-none-any.whl (6.6MB)
100% |████████████████████████████████| 6.6MB 210kB/s
Collecting django-celery==3.1.17 (from -r requirements.txt (line 3))
Downloading django-celery-3.1.17.tar.gz (79kB)
100% |████████████████████████████████| 81kB 3.0MB/s
Collecting django-cors-middleware==1.2.0 (from -r requirements.txt (line 4))
Downloading django-cors-middleware-1.2.0.tar.gz
Collecting django-filter==0.13.0 (from -r requirements.txt (line 5))
Downloading django_filter-0.13.0-py2.py3-none-any.whl
Collecting djangorestframework==3.4.1 (from -r requirements.txt (line 6))
Downloading djangorestframework-3.4.1-py2.py3-none-any.whl (705kB)
100% |████████████████████████████████| 706kB 1.5MB/s
Collecting djangorestframework-word-filter==0.1.1 (from -r requirements.txt (line 7))
Downloading djangorestframework_word_filter-0.1.1-py2.py3-none-any.whl
Collecting psycopg2==2.6.2 (from -r requirements.txt (line 8))
Downloading psycopg2-2.6.2.tar.gz (376kB)
100% |████████████████████████████████| 378kB 2.0MB/s
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/sc/rp8kdvtn233gcdpdh48dtdkm0000gn/T/pip-build-opeyxn4z/psycopg2/
(venv)
from sqliscanner.
安装postgresql了吗
from sqliscanner.
之前没有安装,现在我通过 brew install postgresql
安装好了。 执行第二条同步命令时报错:
→ 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.
可是我从没连过 postgresql,麻烦问一下客户端连接要怎么填写连接参数?
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}
from sqliscanner.
解决了, 我好像都装好了, 现在访问 http://127.0.0.1:8000/
有界面了, 但是要上传 har 文件, 怎么配合 charles 使用呢?
from sqliscanner.
from sqliscanner.
→ python3 manage.py migrate
哥们,这个怎么解决的
from sqliscanner.
Related Issues (20)
- 新版本 HOT 1
- 如何取消邮件通知
- python2.7 不支持吗?
- 上传报错 HOT 1
- 扫描需要很久吗?
- django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the NAME value. HOT 2
- 新版本什么时候更新呀
- sqlmapapi don't recive tasks
- 我创建好了数据库用户,但是一直提示认证失败 HOT 1
- mac 安装时候报错。 HOT 2
- 能发布一个安装教程就好了
- a question, please tell where is sqlmapapi.py , thanks
- what happende? HOT 1
- Update psycopg2 version in requirements.txt
- English lang pack and documentation
- 部署完之后没有报错内容,但就是访问不了192.168.66.128:8000 HOT 2
- 无法部署完成卡在创建数据库上面 HOT 4
- 现在环境无法正常搭建 HOT 1
- 如果提供docker镜像就好了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqliscanner.