0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

現在のディレクトリ構成

Posted at

#ディレクトリ構造(暫定)

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/

#現状
現状ではuse_appでサインアップ、リダイレクトは問題なくできてはいるが、djangoの認証機能上アプリ名はaccounts、templateのパスはtemplates/registration/login.htmlとあらかじめきめられてるらしい…??
(参照:https://docs.djangoproject.com/ja/3.0/topics/auth/default/#all-authentication-views)

ただ、accontsアプリとuser_appアプリの中身を見ても違いは下記の点ぐらいなので、アプリ名は何でもいいのかも…

accounts/apps.py
class AccountsConfig(AppConfig):
    name = 'accounts'
user_app/apps.py
class UserAppConfig(AppConfig):
    name = 'user_app'

#今後の課題
・ユーザー認証機能の完全な実装
・ログインしたユーザーがマイページで詳細な情報の登録をできるようにする。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?