第一次,它工作得很好
(impassion) Subinui-MacBook-Pro:3rd subin$ python3 manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
June 20, 2019 - 01:42:24
Django version 2.2.2, using settings 'impassion_community.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[20/Jun/2019 01:42:50] "GET /admin HTTP/1.1" 301 0
[20/Jun/2019 01:42:50] "GET /admin/ HTTP/1.1" 302 0
[20/Jun/2019 01:42:50] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1819
[20/Jun/2019 01:42:50] "GET /static/admin/css/login.css HTTP/1.1" 200 1233
[20/Jun/2019 01:42:50] "GET /static/admin/css/responsive.css HTTP/1.1" 200 17944
[20/Jun/2019 01:42:50] "GET /static/admin/css/base.css HTTP/1.1" 200 16378
[20/Jun/2019 01:42:50] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[20/Jun/2019 01:42:50] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
[20/Jun/2019 01:42:50] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
Not Found: /favicon.ico
[20/Jun/2019 01:42:50] "GET /favicon.ico HTTP/1.1" 404 1985
^C(impassion)
我能够在chrome上看到Django管理服务器, 所以我创建超级用户
Subinui-MacBook-Pro:3rd subin$ python3 manage.py createsuperuser
Username (leave blank to use 'subin'): tnqls7378
Email address: tnqls7378@gmail.com
Password:
Password (again):
Superuser created successfully.
创建帐户后,我想登录,我打开了chrome浏览器,然后再次连接到http://127.0.0.1:8000/admin/,但是现在我只能看到错误消息,表明我无法再连接到服务器。 可能有什么问题吗?