儲存庫專案 SiteConf
對於在原始碼管理下使用 requirements 和 deployment tools 的 Django 專案。這個例子建立在 Django 的兩個 Scoops 的概念之上。他們釋出了一個模板 :
repository/
docs/
.gitignore
project/
apps/
blog/
migrations/
static/ #( optional )
blog/
some.css
templates/ #( optional )
blog/
some.html
models.py
tests.py
admin.py
apps.py #( django 1.9 and later )
views.py
accounts/
#... ( same as blog )
search/
#... ( same as blog )
conf/
settings/
local.py
development.py
production.py
wsgi
urls.py
static/
templates/
deploy/
fabfile.py
requirements/
base.txt
local.txt
README
AUTHORS
LICENSE
這裡 apps 和 conf 資料夾分別包含專案的 user created applications 和 core configuration folder。
project 目錄中的 static 和 templates 資料夾分別包含整個專案中全域性使用的靜態檔案和 html markup 檔案。
所有 app 資料夾 blog,accounts 和 search 也可能(大部分)包含 static 和 templates 資料夾。