Validating models...0 errors foundApril 22, 2013 - 15:50:53Django version 1.5, using settings 'mysite.settings'Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C.lynx访问地址http://127.0.0.1:8000/,如出现“Welcome to Django”字样,则说明建项目成功。
服务器已经在跑PHP站点,现在新生成一个虚拟服务器
$ sudo vi /etc/nginx/nginx.conf
加入以下内容
# another virtual host using mix of IP-, name-, and port-based configuration
#
server {
listen 8000;
#server_name test.com;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:9090;
}
}
完成后重启下nginx服务
$ sudo /etc/rc.d/nginx restart
如安装了libxml2,也可用如下方法处理:
在app目录创建个django.xml文件
/tmp/onetwo$ sudo vi django.xml
内容如下: