[PYTHON] Current directory structure

Directory structure (provisional)

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/

Current status

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'

Future tasks

-Full implementation of user authentication function -Allow logged-in users to register detailed information on My Page.

Recommended Posts

Current directory structure
Linux directory structure
Linux directory structure
[Django] Directory structure practices + notes
[Python] Check the current directory, move the directory
Command for the current directory Python
Start the web server in the current directory
Pin current directory to script directory in Python
Publish the current directory on the web server
Pipfile is not created in the current directory
Launch an HTTP server in the current directory
Unzip all zip files under the current directory