miniforge 설치, 환경 추가
·
Python
설치brew install miniforge초기화 (필수)conda init zsh초기화 적용source ~/.zshrc환경 추가conda create -n fastapi_with_tensorflow python=3.8환경 액티브conda activate fastapi_with_tensorflow환경 리스트 보기conda env list터미널 inyeong@MacBookPro ~ % brew install miniforgeinyeong@MacBookPro ~ % conda init zshinyeong@MacBookPro ~ % source ~/.zshrc(base) inyeong@MacBookPro ~ % conda create -n fastapi_with_tensorflow python=3.8(base..
app이 쓰는 model 생성
·
Python/Django
해당 앱 폴더 밑에 models.py 를 작성하고 저장 터미널에$ python3 manage.py makemigrations 앱이름 tehon:~/workspace $ python3 manage.py makemigrations dumo Migrations for 'dumo': dumo/migrations/0001_initial.py - Create model Post
cloud9 django 실행
·
Python/Django
tehon:~/workspace $ sudo pip3 install Django tehon:~/workspace $ python3 manage.py migrate tehon:~/workspace $ python3 manage.py runserver $IP:$PORT 서버 끄기ctrl + c
django 와 oracle
·
Python/Django
https://oracle.github.io/python-cx_Oracle/ $ python -m pip install cx_Oracle --pre $ python3 -m pip install cx_Oracle --pre
DisallowedHost
·
Python/Django
DisallowedHost settings.py에서ALLOWED_HOSTS = [] 를 찾아서 [] 안에 접속 아이피를 넣던지'*'를 넣어주면 된다. ALLOWED_HOSTS = '*'
No module named django
·
Python/Django
ImportError: No module named django $ sudo pip3 install Django