-
[Django] API를 사용하여 지도 구현하기Develop/Web & Framework 2020. 8. 3. 17:25
API를 사용하여 Django에서 지도를 구현해보는 실습입니다!
먼저, 가상환경을 생성하고, 실행해줍니다.
$ python -m venv myvenv $ source myvenv/Scripts/activate //mac $ python3 -m venv myvenv $ source myvenv/bin/activate
장고를 설치해준 뒤,
$ pip install django //mac $ pip3 install django
장고 프로젝트를 생성하고 지도를 위한 app을 만들어줍니다!
$ django-admin startproject [myproj] //프로젝트 생성 $ cd [myproj] //생성한 프로젝트 폴더 안으로 이동 $ python manage.py startapp [appname] //app 생성
자, 이제 기본 셋팅이 끝났습니다.
아래 튜토리얼을 차례대로 따라하면서 지도를 구현해봅시다.
(본 튜토리얼은 kakao map API를 사용하였으며, 직접 자료를 제작하였습니다)
'Develop > Web & Framework' 카테고리의 다른 글
[Django] migrations.swappable_dependency(settings.AUTH_USER_MODEL) 에 대하여 (0) 2022.01.03 [Django] 프로젝트 구조 잡기 (0) 2021.10.17 문자 인증 API 구현을 위한 암호화 방식 이해하기 (0) 2021.10.17 [Django] Slacker를 활용하여 slack bot 메세지 보내기 (1) 2020.09.20 [iOS] swift에서의 화면 전환 구현하기 (0) 2020.07.30