升级到django 3.0后加载管理页面会使开发人员崩溃。服务器 [英] loading admin page after upgrading to django 3.0 crashes dev. server
问题描述
我将Django从2.2升级到了3.0,现在我无法访问管理页面。
每次我访问 http://127.0.0.1:8000/admin 开发人员时。服务器退出,没有任何消息或错误。
如果我恢复到Django 2.2,一切正常。
I upgraded Django from 2.2 to 3.0, Now I can't access admin page. Every time I access http://127.0.0.1:8000/admin the dev. server quits without any message or error. If I revert back to Django 2.2 everything works fine.
我做了新鲜的virtualenv并创建了新项目,不幸的是,我再次碰到了开发人员。服务器退出,没有任何错误。
I did fresh virtualenv and created new project unfortunately, I hit the same wall again the Dev. server quits without any error.
这是一个常见问题还是有任何错误?
I我正在使用Windows 10 64位和Pycharm社区2019.2.5
我的虚拟机是:
I am using windows 10 64-bit and Pycharm community 2019.2.5
my virtual is:
Package Version
------------------- ----------
asgiref==3.2.3
certifi==2019.11.28
chardet==3.0.4
Django==3.0
djangorestframework==3.10.3
idna==2.8
Pillow==6.2.1
pip==19.3.1
PyJWT==1.7.1
pytz==2019.3
requests==2.22.0
setuptools==42.0.2
six==1.13.0
sqlparse==0.3.0
twilio==6.34.0
urllib3==1.25.7
wheel==0.33.6
堆栈跟踪
System check identified no issues (0 silenced).
December 06, 2019 - 21:59:45
Django version 3.0, using settings 'suhul_prj.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[06/Dec/2019 21:59:56] "GET / HTTP/1.1" 200 16351
[06/Dec/2019 21:59:56] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[06/Dec/2019 21:59:56] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
[06/Dec/2019 21:59:56] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
[06/Dec/2019 21:59:56] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
[06/Dec/2019 22:00:02] "GET /admin HTTP/1.1" 301 0
[06/Dec/2019 22:00:02] "GET /admin/ HTTP/1.1" 302 0
[06/Dec/2019 22:00:02] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1913
[06/Dec/2019 22:00:03] "GET /static/admin/css/base.css HTTP/1.1" 200 16378
[06/Dec/2019 22:00:03] "GET /static/admin/css/login.css HTTP/1.1" 200 1233
[06/Dec/2019 22:00:03] "GET /static/admin/css/responsive.css HTTP/1.1" 200 18052
[06/Dec/2019 22:00:08] "POST /admin/login/?next=/admin/ HTTP/1.1" 302 0
(home_venv) C:\Users\Admin\Dropbox\django_projects\suhul_prj>
推荐答案
看起来像这个问题回到了python和Django版本不兼容导致WSGI分段错误,当我使用python 3.7并将python降级到3.6时,我遇到了同样的问题!
looks like this problem going back to python and Django versions incompatibility, which caused WSGI segmentation fault, I had the same issue while I was using python 3.7 and with downgrading python to 3.6 it has been solved!
这篇关于升级到django 3.0后加载管理页面会使开发人员崩溃。服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!