project3
├──dancesite
│ ├──dancesite
│ │ ├──_pycache_
│ │ ├──__init__.py
│ │ ├──asgi.py
│ │ ├──settings.py
│ │ ├──urls.py
│ │ └──wsgi.py
│ │
│ ├──matching
│ │ ├──__pycache__
│ │ ├──media
│ │ ├──migrations
│ │ ├──static
│ │ │ └──matching
│ │ │ └──css
│ │ │ └──style.css
│ │ │
│ │ ├──templates
│ │ │ ├──matching
│ │ │ │ ├──mypage/
│ │ │ │ ├──board
│ │ │ │ ├──index.html
│ │ │ │ ├──board.html
│ │ │ │ ├──Recruitment.html
│ │ │ │ └──serch.html
│ │ │ │
│ │ │ ├──user_app
│ │ │ │ ├──login.html
│ │ │ │ ├──logout.html
│ │ │ │ └──sighup.html
│ │ │ │
│ │ │ └──base.html
│ │ │
│ │ ├──__init__.py
│ │ ├──admin.py
│ │ ├──apps.py
│ │ ├──forms.py
│ │ ├──models.py
│ │ ├──tests.py
│ │ ├──urls.py
│ │ └──views.py
│ │
│ ├──user_app
│ │ ├──__pycache__/
│ │ ├──migrations/
│ │ ├──__init__.py
│ │ ├──admin.py
│ │ ├──apps.py
│ │ ├──forms.py
│ │ ├──models.py
│ │ ├──tests.py
│ │ ├──urls.py
│ │ └──views.py
│ │
│ ├──db.sqlite3
│ │
│ └── manage.py
│
└──venv/
Currently, you can sign up and redirect with use_app without any problems, but it seems that the app name is accounts and the template path is templates / registration / login.html due to the authentication function of django ... ?? (See: https://docs.djangoproject.com/ja/3.0/topics/auth/default/#all-authentication-views)
However, even if you look at the contents of the acconts app and the user_app app, the differences are as follows, so the app name may be anything ...
accounts/apps.py
class AccountsConfig(AppConfig):
name = 'accounts'
user_app/apps.py
class UserAppConfig(AppConfig):
name = 'user_app'
-Full implementation of user authentication function -Allow logged-in users to register detailed information on My Page.
Recommended Posts