Use Django models to store variables

- Remove dependency on withsqlite and use Django models.
  This avoids depending on a module that is not available in PyPi.
  Withsqlite does not have Python3 support. It does not work when
  we choose a different database backend. Atleast partly duplicates
  what Django models are meant for.

- Check and update database schema on every run so that
  newly added modules can add tables and old ones can update.
This commit is contained in:
Sunil Mohan Adapa committed 2014-09-10 12:35:35 +05:30
1 parent 2bbaa11c96
commit 42d05bfe1f
8 files changed
+119 -67

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ actions_dir = /usr/share/plinth/actions
doc_dir = /usr/share/doc/plinth
# file locations
store_file = %(data_dir)s/store.sqlite3
store_file = %(data_dir)s/plinth.sqlite3
status_log_file = %(log_dir)s/status.log
access_log_file = %(log_dir)s/access.log
pidfile = %(pid_dir)s/plinth.pid