chaejoo@LIFENTECH2:~$ pip -V
-sh: pip: command not found
chaejoo@LIFENTECH2:~$ sudo wget https://bootstrap.pypa.io/get-pip.py
chaejoo@LIFENTECH2:~$ sudo python3 get-pip.py
chaejoo@LIFENTECH2:~$ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/ local/bin
chaejoo@LIFENTECH2:~$ PATH=$PATH:/volume1/@appstore/py3k/usr/local/bin:
chaejoo@LIFENTECH2:~$ pip -V
pip 19.3.1 from /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/pi p (python 3.5)
chaejoo@LIFENTECH2:~$ sudo pip install django
Collecting django
Downloading https://files.pythonhosted.org/packages/cb/c9/ef1e25bdd092749dae74 c95c2707dff892fde36e4053c4a2354b2303be10/Django-2.2.9-py3-none-any.whl (7.5MB)
|████████████████████████████████| 7.5MB 5.5MB/s
Collecting sqlparse
Downloading https://files.pythonhosted.org/packages/ef/53/900f7d2a54557c6a3788 6585a91336520e5539e3ae2423ff1102daf4f3a7/sqlparse-0.3.0-py2.py3-none-any.whl
Collecting pytz
Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf4 81fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB )
|████████████████████████████████| 512kB 13.5MB/s
Installing collected packages: sqlparse, pytz, django
Successfully installed django-2.2.9 pytz-2019.3 sqlparse-0.3.0
chaejoo@LIFENTECH2:~$ cd
chaejoo@LIFENTECH2:~$ mkdir DjangoProject
chaejoo@LIFENTECH2:~$ cd DjangoProject/
chaejoo@LIFENTECH2:~/DjangoProject$ ls
chaejoo@LIFENTECH2:~/DjangoProject$ django-admin startproject djangotest1
chaejoo@LIFENTECH2:~/DjangoProject$ cd djangotest1/
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$ sudo python3 manage.py runserver Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
December 27, 2019 - 13:46:37
Django version 2.2.9, using settings 'djangotest1.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
^Cchaejoo@LIFENTECH2:~/DjangoProject/djangotest1$ sudo python3 manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying sessions.0001_initial... OK
Watching for file changes with StatReloaderst1$ sudo python3 manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
December 27, 2019 - 13:48:02
Django version 2.2.9, using settings 'djangotest1.settings'
Starting development server at http://127.0.0.1:8000/
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$ sudo python3 manage.py runserver 192.168.0.139:8080
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
December 27, 2019 - 13:49:46
Django version 2.2.9, using settings 'djangotest1.settings'
Starting development server at http://192.168.0.139:8080/
Quit the server with CONTROL-C.
^Cchaejoo@LIFENTECH2:~/DjangoProject/djangotest1$
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$ ls
db.sqlite3 djangotest1 manage.py
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$ cd djangotest1/
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1/djangotest1$ ls
__init__.py __pycache__ settings.py urls.py wsgi.py
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1/djangotest1$ sudo nano settings.py
sudo: nano: command not found
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1/djangotest1$ sudo vi settings.py
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1/djangotest1$ sudo python3 manage.py runserver 192.168.0.139:8080
python3: can't open file 'manage.py': [Errno 2] No such file or directory
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1/djangotest1$ cd ..
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$ cd ..
chaejoo@LIFENTECH2:~/DjangoProject$ cd djangotest1/
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$ sudo python3 manage.py runserver 192.168.0.139:8080
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
December 27, 2019 - 13:53:31
Django version 2.2.9, using settings 'djangotest1.settings'
Starting development server at http://192.168.0.139:8080/
Quit the server with CONTROL-C.
[27/Dec/2019 13:53:44] "GET / HTTP/1.1" 200 16348
[27/Dec/2019 13:53:44] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[27/Dec/2019 13:53:44] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
[27/Dec/2019 13:53:44] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
[27/Dec/2019 13:53:44] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
Not Found: /favicon.ico
[27/Dec/2019 13:53:45] "GET /favicon.ico HTTP/1.1" 404 1981
^Cchaejoo@LIFENTECH2:~/DjangoProject/djangotest1$ sudo wget https://bootstrap.pypa.io/get-pip.py
--2019-12-27 13:56:28-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io... 151.101.228.175, 2a04:4e42:36::175
Connecting to bootstrap.pypa.io|151.101.228.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1775835 (1.7M) [text/x-python]
Saving to: 'get-pip.py'
get-pip.py 100%[===========================================>] 1.69M 1.49MB/s in 1.1s
2019-12-27 13:56:30 (1.49 MB/s) - 'get-pip.py' saved [1775835/1775835]
chaejoo@LIFENTECH2:~/DjangoProject/djangotest1$