"/app/mysite/wsgi.py"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 Wsgi.py 문서를 /opt/webapp/mysite/mysite/wsgi.py 문서로 옮겼습니다)
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 7개는 보이지 않습니다)
1번째 줄: 1번째 줄:
;/app/mysite/wsgi.py
;/usr/src/app/mysite/wsgi.py
;/opt/webapp/mysite/mysite/wsgi.py
;/opt/webapp/mysite/mysite/wsgi.py


==내용==
==내용==
<source lang='python'>
{{소스헤더|django 3.1}}
<syntaxhighlight lang='python'>
"""
WSGI config for mysite project.
 
It exposes the WSGI callable as a module-level variable named ``application``.
 
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
 
import os
 
from django.core.wsgi import get_wsgi_application
 
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
 
application = get_wsgi_application()
</syntaxhighlight>
 
{{소스헤더|django 1.6}}
<syntaxhighlight lang='python'>
"""
"""
WSGI config for mysite project.
WSGI config for mysite project.
17번째 줄: 40번째 줄:
from django.core.wsgi import get_wsgi_application
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
application = get_wsgi_application()
</source>
</syntaxhighlight>
 
==같이 보기==
* [[WSGI]]
* [[/app/mysite/urls.py]]
* [[/app/mysite/settings.py]]


[[분류: /usr/src/app/mysite]]
[[분류: /opt/webapp/mysite/mysite]]
[[분류: /opt/webapp/mysite/mysite]]
[[분류: .py]]
[[분류: .py]]
[[분류: django]]
[[분류: django]]

2020년 11월 2일 (월) 03:00 기준 최신판

/app/mysite/wsgi.py
/usr/src/app/mysite/wsgi.py
/opt/webapp/mysite/mysite/wsgi.py

1 내용[ | ]

django 3.1
"""
WSGI config for mysite project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')

application = get_wsgi_application()
django 1.6
"""
WSGI config for mysite project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}