Created
March 20, 2015 12:01
-
-
Save jianghu52/77f6fc2ac2e4d41da339 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
import sys | |
# 将系统的编码设置为UTF8 | |
reload(sys) | |
sys.setdefaultencoding('utf8') | |
#注意:"apj.settings" 和项目文件夹对应。 | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "apj.settings") | |
from django.core.handlers.wsgi import WSGIHandler | |
application = WSGIHandler() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment