Переглянути джерело

changes to comply with new version

Oz N Tiram 9 роки тому
батько
коміт
1decb9a180
2 змінених файлів з 12 додано та 1 видалено
  1. 10 0
      conf.py
  2. 2 1
      requirements.txt

+ 10 - 0
conf.py

@@ -6,6 +6,11 @@ ini, yaml, or what ever DSL for configuration.
 """
 
 import datetime
+import tinydb
+
+db = tinydb.TinyDB('blogit.db')
+
+
 
 CONFIG = {
     'content_root': 'content',  # where the markdown files are
@@ -20,6 +25,11 @@ CONFIG = {
     'editor': 'editor'
 }
 
+
+DB = {'posts': db.table('posts'), 'tags': db.table('tags'), 
+      'pages': db.table('pages'), 'templates': db.table('templates') }
+
+
 # EDIT THIS PARAMETER TO CHANGE ARCHIVE SIZE
 # 0 Means that all the entries will be in the archive
 # 10 meas that all the entries except the last 10

+ 2 - 1
requirements.txt

@@ -1,4 +1,5 @@
 PyYAML>=3.10
 markdown2>=1.1.1
-python-jinja2 
+jinja2 
 pygments
+tinydb