GitHub 上有哪些值得關注的 Django 項目?


一個Django開發的開源網站Bootcamp

推薦一個網站 djangosites,上面有大量用django開發的網站源碼。

我第一次做Django網站開發的時候是看了項目Bootcamp,它是一個包含了Feed、Article和QA三部分的社交網站,界面簡潔大方,功能基本齊全

試用Bootcamp網址: http://trybootcamp.vitorfs.com/

Bootcamp源碼: vitorfs/bootcamp · GitHub

Bootcamp安裝說明: https://github.com/vitorfs/bootcamp/wiki/Installing-and-Running-Bootcamp

安裝過程很簡單,以下是我安裝過程中遇到的一些問題和關鍵步驟:

(1)安裝psycopg2報錯 Error: pg_config executable not found.

參考網址: http://stackoverflow.com/questions/11618898/pg-config-executable-not-found

解決方案:brew install postgresql

(2)新建文件.env,配置資料庫為mysql

DEBUG=True
SECRET_KEY="mys3cr3tk3y"
DATABASE_URL="mysql://root:@localhost/bootcamp"

(3)同步資料庫,運行 python manage.py syncdb

hujiawei-MacBook-Pro:bootcamp hujiawei$ python manage.py syncdb
Syncing...
Creating tables ...
Creating table auth_permission ...

You just installed Django"s auth system, which means you don"t have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use "hujiawei"): hujiawei
Email address: ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Synced:
&> django.contrib.auth ...

Not synced (use migrations):
-
(use ./manage.py migrate to migrate these)

(4)除去項目中的google痕迹,加速頁面的載入

base.html中刪除ga.js

&