본문 바로가기
프론트엔드

Django 기본 설정하기

by 너부리부리부 2023. 4. 4.

<아나콘다 환경 -> 가상환경 생성하기>

* 가상환경 목록 확인

conda env list

 

* install 라이브러리 확인

conda list
pip list

--> <아래는 폴더의 위치 무관>

 

* 가상환경 생성하기

conda create -n 가상환경이름 python=버전
> conda create -n test python=3.9

 

* 가상환경 삭제하기(초기설정에서는 사용x)

conda env remove -n 가상환경이름
> conda env remove -n test

 

* 가상환경 활성화(들어가기)

conda activate 가상환경이름
> conda activate test

 

* 주피터 노트북 실행하기

- 실행 시 폴더 위치 지정

> cd/
> cd/(yoo)사용할폴더명
> jupyter notebook

 

* 가상환경 커널 생성하기

> python -m ipykernel install --user --name test --display-name test_kernel

 

* 커널 리스트 확인하기

> jupyter kernelspec list

 

* 커널 삭제하기(커널 먼저 삭제 후 가상환경 삭제/순서 상관X)

> jupyter kernelspec uninstall test

<기본적으로 설치해 두면 편한 라이브러리>

> pip install ipython jupyter matplotlib pandas xlrd seaborn scikit-learn

> pip install openpyxl

 

<웹서버 django 설치하기>

> conda install -c conda-forge django==4.0.1

 

<오라클 라이브러리 설치하기>

> pip install cx_oracle

<디렉토리 위치 지정>

* 장고 웹서버 구축(프로젝트 생성)

> django-admin startproject config .

 

* 웹서버 구동(시작)하기

> python manage.py runserver

 

* 웹서버 종료하기

- Ctrl + c

 

'프론트엔드' 카테고리의 다른 글

JavaScript  (0) 2023.04.11
CSS  (0) 2023.04.06
HTML  (0) 2023.04.05

댓글