Skip to content

Instantly share code, notes, and snippets.

@jianghu52
Created March 20, 2015 12:01
Show Gist options
  • Save jianghu52/77f6fc2ac2e4d41da339 to your computer and use it in GitHub Desktop.
Save jianghu52/77f6fc2ac2e4d41da339 to your computer and use it in GitHub Desktop.
#!/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