• postgresql创建用户与数据库操作

    一、查看Postgresql数据库是否安装      ps -e    //查看系统服务如果有:      2240 ?        00:00:00 postgres      ...

  • 在Django中通过Gmail发送电子邮件

    While I was learning how to use django-registration app, I discover in the tutorial that I need to know how to send an email for the user to activate the registration.我找到了这个指南,教我学习如何去使用 django-registration app,如何为用户发送电子邮件,以激活注册。Thanks to fo...

  • Mysql命令行学习

    1、mysql服务的启动和停止net stop mysqlnet start mysql2、登陆mysql语法如下: mysql -u用户名 -p用户密码键入命令mysql -uroot -p, 回车后提示你输入密码,输入12345,然后回车即可进入到mysql中了,mysql的提示符是:mysql˃注意,如果是连接到另外的机器上,则需要加入一个参数-h机器IP[separator]3、增加新用户格式:grant 权限 on 数据库.* to 用户名@登录主机 identif...

  • django-imagekit ImageKit 1.0.1中文文档翻译

    django-imagekit介绍Automates image processing for Django models. Resize, process and cache multiple versions of your image files. Access newly created files with a standard API. Supports alternate storage schemes such as Amazon S3.自动化图像处理为Dja...

  • Ubuntu11.10下手工安装eclipse3.7.1详细步骤

    1. 先下载[url=http://mirror.bjtu.edu.cn/eclipse/eclipse/downloads/drops/R-3.7.1-201109091335/eclipse-SDK-3.7.1-linux-gtk.tar.gz]eclipse-SDK-3.7.1-linux-gtk.tar.gz[/url]        [url=http://eclipse.org/dow...

  • Eclipse 设置代理上网的方法

    在安装PyDev的时候发现装不上,不能连网的原因,所以只能用代理上,系统设置代理之后,发现Eclipse还是连不上,找了半天终于找到Eclipse自己也可以设置代理上网,设置方法如下:window--˃preferences--˃general--˃network connections 选中manual proxy configuration:填入http proxy , port代理需要用帐号和密码就需要选中Enable proxy authentication,然后填上...

  • eclipse:10个最有用的快捷键 高效快速

    一个Eclipse骨灰级开发者总结了他认为最有用但又不太为人所知的快捷键组合。通过这些组合可以更加容易的浏览源代码,使得整体的开发效率和质量得到提升。    1. ctrl+shift+r:打开资源    这可能是所有快捷键组合中最省时间的了。这组快捷键可以让你打开你的工作区中任何一个文件,而你只需要按下文件名或mask名中的前几个字母,比如applic*.xml。美中不足的是这组快捷键并非在所有...

  • Windows下使用Eclipse+PyDev插件搭建Python Django开发环境

    上次是在[url=http://www.husw.net/blog/Python-development-environment-with-Eclipse-and-PyDev-plugins-to-build/]Ubuntu下使用Eclipse+PyDev插件搭建Python开发环境[/url] ,现在要在WINDOWS上使用,WIN下的安装要比Linux下简单很多。[code]环境:Windows7   安装:Python 2.7[/code]1、首先安...

  • django报错: SuspiciousOperation exception on ImageField upload的原因

    今天在用django写了个图片上传测试APP的时候,上传图片就报错如下:[code]SuspiciousOperation at /admin/photos/photo/1/Attempted access to '\upload\201110\2011-09-151302830075_m.jpg' denied.Request Method:   POSTRequest URL:   htt...

  • Django 使用内置分页模块分页的简单实现

    Django分页比较简单,它内置了一个Paginator类.这样对分页的操作只需要明白这个类就OK了。[separator][code]def list(request):    page_size=10    after_range_num = 5    bevor_range_num = 4    try:&nbs...

第 3 页 , 共 8 页