django常见问题(一)

django常见问题(一)

经验分享 2年前 (2015-10-22) 浏览: 54 评论: 0

Q1:将Debug=false后,所有页面都打不开,全部显示server error 500,但是设置Debug=true又好了 可能报错:CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False. 解决方案:ALLOWED_HOSTS = [‘127.0.0.1‘, ‘localhost‘](如果是部署到公网,则填写对应域名或者子域名) Q2:报错信息: ModelForm Creating a ModelForm

Ubuntu 12.04 安装最新版本的Nginx

Ubuntu 12.04 安装最新版本的Nginx

ubuntu 3年前 (2014-12-20) 浏览: 66 评论: 0

先解决一个问题: UBUNTU 12.04重装NGINX无效 1 2 apt-get purge nginx nginx-common nginx-full apt-get install nginx   如果是想安装最新版的:   1.add key wget http://nginx.org/keys/nginx_signing.key apt-key add nginx_signing.key 2.touch /etc/apt/sources.list.d/nginx.

How to enable or disabled a user in ubuntu?

How to enable or disabled a user in ubuntu?

ubuntu 3年前 (2014-12-18) 浏览: 55 评论: 0

Note: (Disabling and locking a user account both mean the same thing.) To disable / lock the user account use below command: [crayon-5a14173e38700369426493/] To put an expire date to an user account so that it automatically gets disabled / locked. [c

登录

忘记密码 ?

切换登录

注册

扫一扫二维码分享