Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
Django 1.6 Test Driven Development
-
Django 1.6 Test Driven Development
-
jeffknupp/sandman
-
卸载PostgreSQL 9.2 另一种思路
最近想在服务器上安装PostgreSQL 9.3.2,但服务器上已经有老的版本PostgreSQL 9.2.1,直接升级是费点周折的。本人懒人一个,就直接安装最新的版本吧。基本思路:先备份原有的数据库,这个参考了之前的《PostgreSQL数据库完美备份恢复》 这点不再累述,现在增加点新的做法,压缩后再备份:一 备份准备:指令:/opt/PostgreSQL/9.2/bin/pg_dump -h 127.0.0.1 -p 5432 -U postgres databasename |gzip >/home/databasename.gz紧接着输入密码即可完成。注释:databasename是数据库名,备份到/home/ 压缩文件名是databasename.gz这种方式后恢复指令:gunzip -c /home/databasename.gz |/opt/PostgreSQL/9.2/bin/psql -h 127.0.0.1 -p 5432 -U postgres databasename注释:其实这是上上指令的逆过程。过程中会先建立一个空的databasename数据库。当然之前的方式照样可行:备份:/opt/PostgreSQL/9.2/bin/pg_dump -h 127.0.0.1 -U postgres databasename > /home/databasename.bak 恢复:/opt/PostgreSQL/9.2/bin/psql -h 127.0.0.1 -U postgres -d databasename < /home/databasename.bak 二 卸载老的PostgreSQL 9.2网上很多人在ubuntu debian上使用以下指令:dpkg --purge postgresql-9.2这个方式适合apt-get install 安装的 PostgreSQL,而我之前喜欢使用官方下载run文件来安装,安装方法如下:chmod +x postgresql-9.2.1-1-linux-x64.run./postgresql-9.2.1-1-linux-x64.run这时PostgreSQL 9.2会安装在/opt/PostgreSQL/9.2/, 显然dpkg卸载是行不通的,要想其他办法了。废话不说了,以下才是本文的重点,通过PostgreSQL自带的卸载程序卸载,指令如下:cd /opt/PostgreSQL/9.2/./uninstall-postgresql稍等几分钟,PostgreSQL 9.2卸载完成,最后就是扫尾工作了,手动删除遗留文件:rm -f -r /opt/PostgreSQL/9.2/(完) -
Django 1.6 Test Driven Development
-
Django 1.6 Test Driven Development
-
Basic Django deployment with virtualenv, fabric, pip and rsync
-
Basic Django deployment with virtualenv, fabric, pip and rsync
-
Erik's pony checkup
-
Starting a Django 1.6 Project the Right Way
-
ajax login for allauth
-
Support for copying profile pictures into django-avatar was removed from django-allauth. This gist contains example code that you can drop into your own project in order to reinstate that functionality.
-
Mourafiq| Welcome to my page!
-
Mourafiq| Welcome to my page!
-
What technology should my startup use? - Matt Aimonetti
-
Django 1.6 Test Driven Development
-
PyLadies Australia
RT @PyLadiesAu: #PyLadies is launching in Australia! Can you (your friends, company) help? #python #django #womenwhocode -
Django m2m form save " through " table - Stack Overflow
-
Django m2m form save " through " table - Stack Overflow
-
DjangoでImageFieldを持つフォームのテスト - kk6のメモ帳*
-
DjangoでImageFieldを持つフォームのテスト - kk6のメモ帳*
-
Testing in Django (part 1) - Best practices and examples
-
Testing in Django (part 1) - Best practices and examples
-
Django - テストデータはsetUpで宣言するべき幾つかの理由 - Qiita [キータ]
-
Django - テストデータはsetUpで宣言するべき幾つかの理由 - Qiita [キータ]