• 2018二月24号 00:23:42:

    回复了文章:特大重磅!!!!!!使用 psql blog < /tmp/myblog.backup转移数据时出错了!!!!!
    发表了评论:
    我对这个配置也是服了,下面是运行出现的502错误,会不会是我的服务器磁盘内存太小了啊,下面是错误提示: (myblog) [root@izuf6eqrt6s22q7f7tijeaz xiaohuang]# wget 127.0.0.1 --2018-02-24 00:00:06-- http://127.0.0.1/ Connecting to 127.0.0.1:80... connected. HTTP request sent, awaiting response... 502 Bad Gateway 2018-02-24 00:00:06 ERROR 502: Bad Gateway.
  • 2018二月23号 21:52:08:

    回复了文章:特大重磅!!!!!!使用 psql blog < /tmp/myblog.backup转移数据时出错了!!!!!
    发表了评论:
    社长,已经按照你说的重新上传的了无格式的备份数据,当我重启服务器后,输入我在阿里云买的公网ip地址,依然没有反应,当我进入我的项目使用python manage.py runserver后显示一切正常,也没有显示错误提示,再次 输入公网IP后浏览器依然没有反应。下面是我运行的结果: (myblog) [root@iZuf6eqrt6s22q7f7tijeaZ xiaohuang]# cd /myblog (myblog) [root@iZuf6eqrt6s22q7f7tijeaZ myblog]# systemctl restart nginx (myblog) [root@iZuf6eqrt6s22q7f7tijeaZ myblog]# systemctl restart postgresql-9.6 (myblog) [root@iZuf6eqrt6s22q7f7tijeaZ myblog]# cd xiaohuang (myblog) [root@iZuf6eqrt6s22q7f7tijeaZ xiaohuang]# gunicorn xiaohuang.wsgi:application -b 127.0.0.1:8000 -D (myblog) [root@iZuf6eqrt6s22q7f7tijeaZ xiaohuang]# python manage.py runserver Performing system checks... System check identified no issues (0 silenced). February 23, 2018 - 21:44:04 Django version 1.10.7, using settings 'blogproject.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.
  • 2018二月22号 22:00:27:

    回复了文章:特大重磅!!!!!!使用 psql blog < /tmp/myblog.backup转移数据时出错了!!!!!
    发表了评论:
    对啊,我改了的,最主要的是我运行命令psql blog < /tmp/myblog.backup时没出现和你一样的数据迁移,就只出现了The input is a PostgreSQL custom-format dump. Use the pg_restore command-line client to restore this dump to a database.
  • 2018二月22号 21:58:17:

    回复了文章:特大重磅!!!!!!使用 psql blog < /tmp/myblog.backup转移数据时出错了!!!!!
    发表了评论:
    # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5
  • 2017九月22号 22:03:59:

    回复了文章:为什么我把社长的第十节课的源码(fhx文件夹)直接移动到我的虚拟环境中,替换掉原来自己的fhx文件夹,一直报错,搞不懂。
    发表了评论:
    看不懂这个错误提示是啥意思? pip freeze虚拟环境下我装了: Django==1.11.5 psycopg2==2.6.2 pytz==2017.2 Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x00000236D92CDAE8> Traceback (most recent call last): File "C:\Users\1\geli\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper fn(*args, **kwargs) File "C:\Users\1\geli\lib\site-packages\django\core\management\commands\runserver.py", line 125, in inner_run self.check(display_num_errors=True) File "C:\Users\1\geli\lib\site-packages\django\core\management\base.py", line 359, in check include_deployment_checks=include_deployment_checks, File "C:\Users\1\geli\lib\site-packages\django\core\management\base.py", line 346, in _run_checks return checks.run_checks(**kwargs) File "C:\Users\1\geli\lib\site-packages\django\core\checks\registry.py", line 81, in run_checks new_errors = check(app_configs=app_configs) File "C:\Users\1\geli\lib\site-packages\django\core\checks\urls.py", line 16, in check_url_config return check_resolver(resolver) File "C:\Users\1\geli\lib\site-packages\django\core\checks\urls.py", line 26, in check_resolver return check_method() File "C:\Users\1\geli\lib\site-packages\django\urls\resolvers.py", line 254, in check for pattern in self.url_patterns: File "C:\Users\1\geli\lib\site-packages\django\utils\functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "C:\Users\1\geli\lib\site-packages\django\urls\resolvers.py", line 405, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "C:\Users\1\geli\lib\site-packages\django\utils\functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "C:\Users\1\geli\lib\site-packages\django\urls\resolvers.py", line 398, in urlconf_module return import_module(self.urlconf_name) File "C:\Users\1\AppData\Local\Programs\Python\Python35\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 985, in _gcd_import File "<frozen importlib._bootstrap>", line 968, in _find_and_load File "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 697, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "C:\Users\1\geli\fhx\fhx\urls.py", line 18, in <module> from blog import views File "C:\Users\1\geli\fhx\blog\views.py", line 4, in <module> import datetime,bleach ImportError: No module named 'bleach'
  • 2017九月22号 22:01:44:

    回复了文章:为什么我把社长的第十节课的源码(fhx文件夹)直接移动到我的虚拟环境中,替换掉原来自己的fhx文件夹,一直报错,搞不懂。
    发表了评论:
    不知道哪里出错误 Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x00000236D92CDAE8> Traceback (most recent call last): File "C:\Users\1\geli\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper fn(*args, **kwargs) File "C:\Users\1\geli\lib\site-packages\django\core\management\commands\runserver.py", line 125, in inner_run self.check(display_num_errors=True) File "C:\Users\1\geli\lib\site-packages\django\core\management\base.py", line 359, in check include_deployment_checks=include_deployment_checks, File "C:\Users\1\geli\lib\site-packages\django\core\management\base.py", line 346, in _run_checks return checks.run_checks(**kwargs) File "C:\Users\1\geli\lib\site-packages\django\core\checks\registry.py", line 81, in run_checks new_errors = check(app_configs=app_configs) File "C:\Users\1\geli\lib\site-packages\django\core\checks\urls.py", line 16, in check_url_config return check_resolver(resolver) File "C:\Users\1\geli\lib\site-packages\django\core\checks\urls.py", line 26, in check_resolver return check_method() File "C:\Users\1\geli\lib\site-packages\django\urls\resolvers.py", line 254, in check for pattern in self.url_patterns: File "C:\Users\1\geli\lib\site-packages\django\utils\functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "C:\Users\1\geli\lib\site-packages\django\urls\resolvers.py", line 405, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "C:\Users\1\geli\lib\site-packages\django\utils\functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "C:\Users\1\geli\lib\site-packages\django\urls\resolvers.py", line 398, in urlconf_module return import_module(self.urlconf_name) File "C:\Users\1\AppData\Local\Programs\Python\Python35\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 985, in _gcd_import File "<frozen importlib._bootstrap>", line 968, in _find_and_load File "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 697, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "C:\Users\1\geli\fhx\fhx\urls.py", line 18, in <module> from blog import views File "C:\Users\1\geli\fhx\blog\views.py", line 4, in <module> import datetime,bleach ImportError: No module named 'bleach'

需要登录以后才能进行刚才的操作

  • 刚才的操作,需要登录以后才能继续,如果已经有账号,请点击登录,登录以后,会自动返回到当前页面进行刚才的操作。如果还没有账号,请点击注册。