pip install django==4.2 (LTS version)requirements.txt 생성: pip freeze > requirements.txtdjango-admin startproject <프로젝트 이름> <생성 디렉토리>python manage.py startapp <앱 이름>settings.py의 INSTALLED_APPS에 생성한 앱 이름 추가<프로젝트 이름>/urls.py에서 앱으로 향하는 url들을 분리해서 path 지정<앱 이름>/urls.py에서 app_name을 주고 url마다 path 지정Custom UserModel 생성accounts 앱 생성settings.py의 INSTALLED_APPS에 accounts 추가하고, AUTH_USER_MODEL = "accounts.User" 도 추가<프로젝트 이름>/urls.py에서 앱으로 향하는 url들을 분리해서 path 지정accounts/urls.py에서 app_name을 주고 url마다 path 지정accounts/models.py에서 빈 User class 생성accounts/forms.py을 생성해 CustomUserCreationForm 클래스 생성migration 생성python manage.py makemigrationspython manage.py migrateAPI란?
- CLI (Command Line Interface) - 명령줄로 소통하는 방법
- GUI (Graphic User Interface) - 그래픽으로 유저와 소통하는 방법
- API (Application Programming Interface) - 프로그래밍으로 어플리케이션과 소통하는 방법
RESTful API란?
- REST: 웹에 대한 소프트웨서 설계 방법론
- 어플리케이션간 소통하는 방법에 REST적인 표현을 더한 것 → REST 원리를 따라 설계한 API