test example..
아래 명령어로 확인시 3.7.x... required 버전은 3.8 이상..
(업데이트가 번거로운데 Ubuntu 버전이 낮아서 그런걸로 보임)
$python -c "import sqlite3; print sqlite3.sqlite_version"
테스트 목적이므로 old 버전을 설치하여 회피, 실제로 개발한다면 최신버전의 ubuntu를 활용할 것.
#sudo pip3 install django==2.1 // 설치 시 sqlite dependancy로 인해 제대로 설치가 안됨.
./manage.py runserver 127.0.0.1:8000 사용 시, 다른 host에서 connection 불가..
(pytest) leej5@LeeJ5:~/python_project/test1/test/t1$ ./manage.py runserver 192.168.1.3:8000
Performing system checks...
System check identified no issues (0 silenced).
July 19, 2019 - 05:21:25
Django version 2.1, using settings 't1.settings'
Starting development server at http://192.168.1.3:8000/
Quit the server with CONTROL-C.
[19/Jul/2019 05:21:41] "GET / HTTP/1.1" 200 16348
[19/Jul/2019 05:21:41] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[19/Jul/2019 05:21:42] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 82564
[19/Jul/2019 05:21:42] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 80304
[19/Jul/2019 05:21:42] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 81348
Not Found: /favicon.ico
[19/Jul/2019 05:21:42] "GET /favicon.ico HTTP/1.1" 404 1970
^C(pytest) leej5@LeeJ5:~/python_project/test1/test/t1$ ./manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
July 19, 2019 - 05:21:52
Django version 2.1, using settings 't1.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
^C(pytest) leej5@LeeJ5:~/python_project/test1/test/t1$ ./manage.py runserver 192.168.1.3:8000
Performing system checks...
System check identified no issues (0 silenced).
July 19, 2019 - 05:22:00
Django version 2.1, using settings 't1.settings'
Starting development server at http://192.168.1.3:8000/
Quit the server with CONTROL-C.
[19/Jul/2019 05:22:13] "GET / HTTP/1.1" 200 16348
'python' 카테고리의 다른 글
jupyter note login token 확인 방법 (0) | 2019.12.07 |
---|---|
try except 문 (0) | 2019.11.20 |
Django install guide (link) (0) | 2019.07.19 |
python3 version 선택 (0) | 2019.07.19 |
virtual env(venv) install in ubuntu 14 (0) | 2019.07.19 |