2023. 3. 7. 13:02ㆍ개발/django,python,conda
기본 파이썬 쉘로는 바로 장고 프로젝트의 리소스 (모델, 템플릿 등)를 활용하실 수 없습니다. 왜냐하면 장고 프로젝트 로딩 과정을 거치지 않았기 때문
파이썬 쉘
Jupyter and the future of IPython — IPython
IPython provides a rich architecture for interactive computing with: A powerful interactive shell. A kernel for Jupyter. Support for interactive data visualization and use of GUI toolkits. Flexible, embeddable interpreters to load into your own projects. E
ipython.org
https://bpython-interpreter.org
Home - bpython
Home bpython is a fancy interface to the Python interpreter for Linux, BSD, OS X and Windows (with some work). bpython is released under the MIT License. It has the following (special) features: In-line syntax highlighting Readline-like autocomplete with s
bpython-interpreter.org
Jupyter
등의 파이썬 쉘이 있음
쉘로 장고 관리
[ Python ] Django로 웹 서비스 개발하기 ( 8. shell을 이용한 장고 관리)
장고로 시작하는 2017년
medium.com
장고 모델은 Manager/QuerySet을 통해 다양한 SQL 쿼리를 수행할 수 있다.
장고를 쓴다고 해서 모든 로직을 100% 모델로 구현해야하는 것은 아니다. 상황에 따라 Raw SQL을 사용하실 수도 있으며, 장고 애플리케이션 단에서 로직을 통해 JOIN처리를 하실 수도 있다. 이때 Pandas (파이썬 데이터 전처리 라이브러리)를 사용해보실 수도 있다.
Pandas는 pip install pandas 명령으로 설치하실 수 있고, 손쉽게 장고 쿼리셋으로부터 Pandas DataFrame 객체를 생성하실 수 있다. 장고를 통해 매번 SQL 쿼리를 작성하는 번거로움이 없어집.
'개발 > django,python,conda' 카테고리의 다른 글
장고에서 CSRF (0) | 2023.03.09 |
---|---|
Python - 장식자(decorator) (0) | 2023.03.08 |
Django 데이터 관리 (0) | 2023.03.03 |
장고 html {% %} , {{ }} (0) | 2023.03.03 |
장고 html 인식 (0) | 2023.03.03 |