서버 초안

이동현·2022년 8월 27일
0

SKT 프로젝트

목록 보기
10/15

혹시 몰라서 중간 저장

appdirs==1.4.4
asgiref==3.2.10
astroid==2.4.2
autopep8==1.5.4
boto3==1.14.31
botocore==1.17.31
cachelib==0.1
certifi==2020.4.5.1
chardet==3.0.4
click==7.1.2
colorama==0.4.4
cs50==5.0.4
distlib==0.3.1
Django==3.1.4
django-ckeditor==5.9.0
django-cors-headers==3.5.0
django-crispy-forms==1.9.2
django-filter==2.3.0
django-js-asset==1.2.2
django-storages==1.9.1
djangorestframework==3.11.1
djangorestframework-simplejwt==4.5.0
docutils==0.15.2
filelock==3.0.12
Flask==1.1.2
Flask-Session==0.3.2
gunicorn==20.0.4
idna==2.9
install==1.3.3
isort==5.6.4
itsdangerous==1.1.0
Jinja2==2.11.2
jmespath==0.10.0
lazy-object-proxy==1.4.3
MarkupSafe==1.1.1
mccabe==0.6.1
Pillow==8.0.1
psycopg2==2.9.3
pycodestyle==2.6.0
PyJWT==2.0.0
pylint==2.6.0
python-dateutil==2.8.1
python-dotenv==0.13.0
pytz==2020.1
requests==2.23.0
s3transfer==0.3.3
six==1.15.0
SQLAlchemy==1.3.17
sqlparse==0.3.1
termcolor==1.1.0
toml==0.10.2
urllib3==1.25.9
virtualenv==20.2.1
Werkzeug==0.15.4
whitenoise==5.1.0
wrapt==1.12.1

<ubuntu server 구동>
sudo apt update
Apt install python3-pip
sudo apt-get install libpq-dev python-dev
sudo apt install python3-testresources

Virtualenv myenv
Source myenv/bin/activate

python -m pip install --upgrade pip

Pip install -r requirements.txt

Cd 1st_2
Python manage.py runserver

<m1 mac 구동>
virtualenv myenv
Cd myenv/bin
Source activate
Cd ..
Cd ..

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

requrirements.txt에서
psycopg2==2.9.3 로 변경
djangorestframework-simplejwt==4.5.0 로 변경
PyJWT==2.0.0 로 변경

Pip install -r requirements.txt

Python manage.py rumserver

https://query.tistory.com/entry/Django-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-AWS-EC2-%EB%B0%B0%ED%8F%AC

0개의 댓글