Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- debug_toolbar
- devops
- Eclipse
- SCALA APP
- ubuntu
- Amazon
- json
- MongoDB
- AWSKRUG
- VPC
- list
- django
- mcponaws
- AI
- git
- Spark
- AWS
- pyspark
- ai assistant
- amazon q
- Python
- debug toolbar
- nosql
- coding with ai
- Transit Gateway
- 툴바안뜸
- django-debug-toolbar
- tgw
Archives
- Today
- Total
STACKBASE
[Django] 장고 쉘! 본문
반응형
장고 프로젝트 리소스(모델, 템플릿 등)을 쉘 환경에서 활용할 수 있도록 장고 프로젝트가 로딩된 쉘을 사용하는 방법
+ Jupyter Notebook
실행환경
conda 가상환경
- python==3.7
- Django==2.2.5
1. Ipython, Jupyter notebook 설치
conda install ipython
conda install jupyter
2. 장고 프로젝트 로딩
python manage.py shell
import os
os.environ["DJANGO_SETTINGS_MODULE"] = 'askcompany.settings'
import django
django.setup() # 장고 로드
3. 위 내용을 Jupyter notebook을 실행하고 python3 파일을 새로 생성후 입력하면 된다.
반응형
'프로그래밍 > Django' 카테고리의 다른 글
[Django] admin을 통한 데이터 관리 (0) | 2022.02.17 |
---|---|
[Django] 장고 소개 (0) | 2022.02.16 |
[Django] debug toolbar 설치 (0) | 2022.01.28 |
[Django] debug toolbar 오류 Fix (0) | 2022.01.28 |