poetry init
poetry add django
poetry shell
exit
django-admin startproject config .
django-admin startproject 이름 경로
manage.py
manage.py
말고 다른 걸 사용하여 서버 실행python manage.py runserver
Quit the server with CONTROL-C.
admin, auth, contenttypes, sessions
앱들에 대한 migration
이 필요함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.
python manage.py migrate
superuser
생성 필요python manage.py createsuperuser
app(data+logic)
들로 구성되어 있음. app은 모듈로 생각하면 됨user
를 위한 데이터/로직과 room
을 위한 데이터/로직은 분리하여 관리할 수 있고, 그렇게 하는 것이 효율적임. 따라서 users app
과 rooms app
으로 나눌 수 있음python manage.py startapp 이름