WSGI配置
![]()
1 #!/usr/bin/python
2 """
3 WSGI config for rana project.
4
5 It exposes the WSGI callable as a module-level variable named ``application``.
6
7 For more information on this file, see
8 https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
9 """
10
11 import os, sys
12 # 这里是服务器中的项目目录
13 sys.path.append('/home/www/rana')
14
15 from django.core.wsgi import get_wsgi_application
16
17 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rana.settings")
18
19 application = get_wsgi_application()
wsgi.py