Tech Blog of Pinomaker
해당 게시글은 Mac에서 Anaconda와 IntelliJ를 이용하여 구축 합니다.

01. Anaconda 설치

해당 사이트에 접속하여 Andaconda를 설치한다.

 

Anaconda | Anaconda Distribution

Anaconda's open-source Distribution is the easiest way to perform Python/R data science and machine learning on a single machine.

www.anaconda.com

 

02. Django 설치

Anaconda를 이용하여 Django를 설치한다.

 #conda를 이용한 Django 설치
 conda install django

 

03. Django 폴더 생성

django-admin startproject djangoStudy #djangoStudy 프로젝트 폴더 생성

 

04. IntelliJ에서 Python Plugin 설치

IntelliJ를 실행 후 Plugin에서 Python을 설치한다.

 

05. IntelliJ에서 Django실행

(1) IntelliJ에서 생성한 djangoStudy 폴더를 연다.

 

 

(2) 터미널을 열고, 아래의 명령어를 입력한다.

#Django 실행
python manage.py runserver

#실행하면 아래와 같은 로그가 나옴

#Watching for file changes with StatReloader
#Performing system checks...

#System check identified no issues (0 silenced).

#You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
#Run 'python manage.py migrate' to apply them.
#May 22, 2021 - 06:05:03
#Django version 3.1.7, using settings 'mysite.settings'
#Starting development server at http://127.0.0.1:8000/
#Quit the server with CONTROL-C.

 

(3) http://localhost:8000 접속 하기.

웹에 들어가 http://localhost:8000/ 주소를 입력해 접속하여 아래의 이미지가 나오면 성공이다.

 

'Language > Python' 카테고리의 다른 글

[Python] requests와 json을 이용한 http 통신하기.  (0) 2022.06.04
[Python] 튜플  (0) 2022.05.30
[Python] 내장 함수  (0) 2022.04.27
[Python] 기본 함수 정리  (0) 2022.04.20
[Python] 파이썬의 자료형과 주석  (0) 2022.04.20
profile

Tech Blog of Pinomaker

@pinomaker

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!