https://github.com/dyve/django-bootstrap3
새로운폴더 생성후 들어간다
sudo apt-get update &
sudo apt-get install git-core
git clone -b master https://github.com/dyve/django-bootstrap3.git
sudo apt-get install python
sudo apt-get install python-pip
django-bootstrap3폴더에 들어가서
sudo pip install -r requirements.txt
sudo pip install -e .
demo폴더에 들어가서
sudo nohup python manage.py runserver 0.0.0.0:80
끝에 &는 센스
sudo pip하면 글로벌로 설치
1 pwd
2 sudo apt-get update
3 sudo apt-get install git-core
4 git clone -b master https://github.com/dyve/django-bootstrap3.git
5 cd django-bootstrap3
6 sudo apt-get install python3-venv
7 python3 -m venv myvenv
8 source myvenv/bin/activate
9 sudo apt-get install python
10 sudo apt-get install python-pip
11 sudo pip install -r requirements.txt
12 sudo pip install -e .
13 cd demo/
14 sudo python manage.py runserver 0.0.0.0:80
15 sudo ufw allow http
16 sudo ufw allow ssh
17 sudo ufw reload
18 history > 1
19 sudo python manage.py runserver 0.0.0.0:80
1 sudo apt-get update
2 sudo apt-get install git-core
3 git clone -b master https://github.com/dyve/django-bootstrap3.git
4 sudo apt-get install python
5 sudo apt-get install python-pip
sudo apt-get install python-django
6 sudo apt-get install python3-venv
7 python3 -m venv myvenv
8 source myvenv/bin/activate
9 cd django-bootstrap3
10 pip install -r requirements.txt
11 pip install -e .
12 cd demo
13 sudo ufw allow http
14 sudo ufw allow ssh
15 sudo ufw reload
16 sudo python manage.py runserver 0.0.0.0:80
17 sudo nohup python manage.py runserver 0.0.0.0:80
(pip install virtualenvwrapper)
pip install virtualenv
(virtualenv --no-site-packages --distribute env)
virtualenv -p /usr/bin/python2.7 --no-site-packages env
source env/bin/activate
pip install django==1.9
pip install Sphinx
pip install sphinx_rtd_theme
pip install django-bootstrap3
apt-get install openssh-server
아래는 가상환경 포기
1 sudo apt-get update
2 sudo apt-get install git-core
3 git clone -b dev https://github.com/jujinesy/django_wanderlust.git
4 sudo apt-get install python
5 sudo apt-get install python-pip
6 cd django_wanderlust
7 pip install -r requirements.txt
8 pip install -e .
9 cd demo
10 sudo ufw allow http
11 sudo ufw allow ssh
12 sudo ufw reload
13 sudo python manage.py runserver 0.0.0.0:80
14 sudo nohup python manage.py runserver 0.0.0.0:80
------------------------------------------------------------
apt-get install openssh-server
sudo apt-get install python
sudo apt-get install python-pip
export LC_ALL=C
-----------------------
user@user:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
------------------------
pip install virtualenv
mkdir ~/.virtualenvs
------------------------
.bashrc의 맨아래 추가
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Workspace
------------------------
source ~/.bashrc
sudo pip install virtualenvwrapper
------------------------
.bashrc의 맨아래 추가
source /home/user/.local/bin/virtualenvwrapper.sh
(source /usr/local/bin/virtualenvwrapper.sh)
------------------------
source ~/.bashrc
workon
sudo apt-get install sqlite3 libsqlite3-dev
mkvirtualenv pystagram
deactivate
workon pystagram
pip install django==1.7.0
'웹 > django' 카테고리의 다른 글
django settings 분리 (0) | 2017.06.03 |
---|---|
장고 헬로우월드 (0) | 2015.10.11 |
python for visual studio (0) | 2014.08.20 |
설정법 (0) | 2014.06.08 |
sqlitebrowser db.sqlite3 (0) | 2014.04.30 |