django-preferences

軟件截圖:
django-preferences
軟件詳細信息:
版本: 0.0.6
上傳日期: 14 Apr 15
許可: 免費
人氣: 2

Rating: nan/5 (Total Votes: 0)

Django的喜好是一個Django應用程序,允許用戶通過管理界面設置應用程序特定的偏好。
提供了首對象和一個簡單的界面,偏好值單管理的意見。辛格爾頓的意見,確保只有一個偏好intance可用於每個Preferences類。
安裝
  1。喜好添加到您安裝的應用程序設置。
  2。添加偏好URL包括到項目的url.py文件。請務必使用“管理員/”作為包括的路徑的開始,因為它會覆蓋一定的管理意見:
 (R'^管理/',包括(“preferences.urls')),
用法
要創建的喜好為您的應用程序創建一個模型存儲你的喜好為正常,與模型從preferences.models.Preferences繼承。還指定preferences.models為您的模型模塊:
從django.db進口車型
從preferences.model進口偏好
類MyPreferences(首):
  __ module__ ='preferences.models“
  portal_contact_email = models.EmailField()
管理員類按往常一樣,不需要改變指定。您的喜好將在Django管理偏好的應用程序標籤下顯示。
首選項可以在python通過導入喜好模塊和穿越到你所需要的偏好形式的偏好進行訪問 <現場>,即:
從喜好導入首選
portal_contact_email = preferences.MyPreferences.portal_contact_email

什麼在此版本中是新的

  • 更好的包裝

什麼在0.0.5版本新

  • 在新增網站支持
  • 添加單元測試代碼。

什麼版本0.0.4的新

  • 在清理。文檔拋光。

什麼在0.0.3版本新

  • 在拼寫校正,感謝tiktuk

要求

  • 在Python中
  • 在Django的

顯影劑的其他軟件 Praekelt Foundation

autoload
autoload

11 May 15

jmbo-event
jmbo-event

14 Apr 15

django-generate
django-generate

20 Feb 15

django-export
django-export

11 May 15

意見 django-preferences

評論沒有發現
添加評論
打開圖片!