Python Framework/Django
Django 파일 설명
sailorCat
2022. 1. 3. 12:53
728x90
- __init__.py is an empty file that instructs Python to treat this directory as a Python package.
- 웹 프로젝트 디렉토리가 파이썬 모듈로 인식되게 하는 부분
- settings.py contains all the website settings, including registering any applications we create, the location of our static files, database configuration details, etc.
- 파이썬 장고의 설정을 담당하는 부분 키 디버그 주소지정 설치된 앱 목록 미들웨어 url모듈 템플릿 요소 웹서버 앱 db 패스워드 관리 시간 언어 사진을 넣은 폴더의 주소
- urls.py defines the site URL-to-view mappings. While this could contain all the URL mapping code, it is more common to delegate some of the mappings to particular applications, as you'll see later.
- url관리 주소지정 할당
- wsgi.py is used to help your Django application communicate with the webserver. You can treat this as boilerplate.
- 서버에서 장고를 실행할때 사용하는 부분
- asgi.py is a standard for Python asynchronous web apps and servers to communicate with each other. ASGI is the asynchronous successor to WSGI and provides a standard for both asynchronous and synchronous Python apps (whereas WSGI provided a standard for synchronous apps only). It is backward-compatible with WSGI and supports multiple servers and application frameworks.
- 서버에서 장고를 실행할때 사용하는 부분
The manage.py script is used to create applications, work with databases, and start the development web server.
매니지 파일은 앱을 생성하고 db와 연동하고 웹서버에서 실행을 맡는다.
프로젝트는 여러가지 App으로 구성되어 있다.
다양한 기능들과 모듈이 존재하며, 장고는 App 단위로 import하여 사용한다.
728x90