首页 > 代码库 > django 简易博客

django 简易博客

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: /static10   static_dir: static

 

 

 

index.wsgi

 

import saefrom guolong20130222 import wsgiapplication = sae.create_wsgi_app(wsgi.application)

 

 

 

manage.py

 

#!/usr/bin/env pythonimport osimport sysif __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)

 

  

 

 

   加油,明天会更好!

 

django 简易博客