プロジェクト custom_auth_project 内にユーザ管理を行うためのアプリケーション users を作成します.
(py39) C:\Users\lecture\Documents\django\custom_auth_project>python manage.py startapp users ⏎ (py39) C:\Users\lecture\Documents\django\custom_auth_project>git add . ⏎ (py39) C:\Users\lecture\Documents\django\custom_auth_project>git commit -m"startapp users" ⏎ [master 91b6429] startapp users 7 files changed, 18 insertions(+) create mode 100644 users/__init__.py create mode 100644 users/admin.py create mode 100644 users/apps.py create mode 100644 users/migrations/__init__.py create mode 100644 users/models.py create mode 100644 users/tests.py create mode 100644 users/views.py
settings.py を編集してアプリケーションを有効化します.
custom_auth_project/settings.py
# Application definition
INSTALLED_APPS = [
'users.apps.UsersConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]