标签:style blog http io ar color os sp strong
SAE+Django
一:本地安装的工具,版本一定匹配
1:python 2.7.3
2:SVN
3:MySQL_python-1.2.3-py2.7
4:MySQL
5:Django1.4
二:开发过程中注意大小写匹配
困扰我好长时间问题
三:SAE配置
config.yaml
1 name: guolong20130222 2 version: 5 3 4 libraries: 5 - name: "django" 6 version: "1.4" 7 8 handlers: 9 - url: /static 10 static_dir: static
index.wsgi
import sae from guolong20130222 import wsgi application = sae.create_wsgi_app(wsgi.application)
manage.py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "guolong20130222.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
加油,明天会更好!
标签:style blog http io ar color os sp strong
原文地址:http://www.cnblogs.com/xiaoxiong0222/p/4138780.html