Do a cleaner package.
Add an Apache sample configuration file Update README with better installation instructions
13
README
|
@ -1,16 +1,21 @@
|
|||
Dynastie is static blog generator delivered under GPL v3 licence terms.
|
||||
|
||||
Current version is 0.1
|
||||
Current version is 0.2
|
||||
|
||||
Requirements :
|
||||
Django >= 1.4, libapache2-mod-wsgi if you want to use Dynastie with Apache. PyGments (Optional).
|
||||
|
||||
Installation :
|
||||
Download Dynastie. Copy dynastie.bdd.init in dynastie.bdd and update wsgy.py (with $PWD/..). Then you can create a blog*, users**, categories, posts and generate your blog !
|
||||
* Download Dynastie
|
||||
* Update wsgy.py (with $PWD/..)
|
||||
* Run ./manage.sh syncdb and create a superuser
|
||||
* Run ./manage.sh runserver
|
||||
or
|
||||
* Copy (and edit) apache_dynastie.conf in /etc/apache2/sites-available, and create a symbolic link from /etc/apache2/sites-enabled to /etc/apache2/sites-available
|
||||
|
||||
Then you can create users*, blog, categories, posts and generate your blog !
|
||||
|
||||
*Be careful : $(blog.name) must be an URI like "blog.soutade.fr", it will be used like this in some parts of Dynastie.
|
||||
|
||||
**There is an existing user : admin/admin
|
||||
|
||||
|
||||
More information can be found at http://indefero.soutade.fr/p/dynastie
|
||||
|
|
19
apache_dynastie.conf
Normal file
|
@ -0,0 +1,19 @@
|
|||
<VirtualHost *>
|
||||
ServerName dynastie.soutade.fr
|
||||
|
||||
DocumentRoot /home/soutade/dynastie/dynastie/
|
||||
|
||||
WSGIScriptAlias / /home/soutade/dynastie/dynastie/wsgi.py
|
||||
|
||||
Alias /static /home/soutade/dynastie/dynastie/static
|
||||
|
||||
<Directory /home/soutade/dynastie/dynastie>
|
||||
<IfVersion < 2.3 >
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
<IfVersion >= 2.3>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
</Directory>
|
||||
</VirtualHost>
|
0
UserProfile.py → dynastie/UserProfile.py
Normal file → Executable file
0
__init__.py → dynastie/__init__.py
Normal file → Executable file
1
forms.py → dynastie/forms.py
Normal file → Executable file
|
@ -46,7 +46,6 @@ class CategoryForm(ModelForm):
|
|||
class UserForm(ModelForm):
|
||||
class Meta:
|
||||
model = User
|
||||
exclude = ('password')
|
||||
|
||||
class CommentForm(ModelForm):
|
||||
class Meta:
|
0
generators/__init__.py → dynastie/generators/__init__.py
Normal file → Executable file
0
generators/all_posts.py → dynastie/generators/all_posts.py
Normal file → Executable file
7
generators/archive.py → dynastie/generators/archive.py
Normal file → Executable file
|
@ -48,7 +48,12 @@ class Archive(Index):
|
|||
dom = self.parseTemplate(blog, src, output, 'archive', 'archive')
|
||||
if dom is None: return self.report
|
||||
|
||||
first_post = Post.objects.filter(published=True, front_page=True).order_by('creation_date')[0]
|
||||
posts = Post.objects.filter(published=True, front_page=True).order_by('creation_date')
|
||||
|
||||
if len(posts) == 0:
|
||||
return self.report
|
||||
|
||||
first_post = posts[0]
|
||||
last_post = Post.objects.filter(published=True, front_page=True).order_by('-creation_date')[0]
|
||||
|
||||
start_year = first_post.creation_date.year
|
0
generators/atom.py → dynastie/generators/atom.py
Normal file → Executable file
0
generators/category.py → dynastie/generators/category.py
Normal file → Executable file
0
generators/generator.py → dynastie/generators/generator.py
Normal file → Executable file
0
generators/index.py → dynastie/generators/index.py
Normal file → Executable file
0
generators/markdown2.py → dynastie/generators/markdown2.py
Normal file → Executable file
0
generators/post.py → dynastie/generators/post.py
Normal file → Executable file
0
generators/rss.py → dynastie/generators/rss.py
Normal file → Executable file
0
generators/search.py → dynastie/generators/search.py
Normal file → Executable file
0
generators/tag.py → dynastie/generators/tag.py
Normal file → Executable file
0
models.py → dynastie/models.py
Normal file → Executable file
0
search.py → dynastie/search.py
Normal file → Executable file
2
settings.py → dynastie/settings.py
Normal file → Executable file
|
@ -26,7 +26,7 @@ TEMPLATE_DEBUG = DEBUG
|
|||
|
||||
if not 'DYNASTIE_ROOT' in os.environ:
|
||||
# manage.py
|
||||
dynastie_root = os.getcwd()
|
||||
dynastie_root = os.getcwd() + '/dynastie/'
|
||||
else:
|
||||
# Apache
|
||||
dynastie_root = os.environ['DYNASTIE_ROOT']
|
0
sites/blog.soutade.fr/_all_posts.html → dynastie/sites/blog.soutade.fr/_all_posts.html
Normal file → Executable file
0
sites/blog.soutade.fr/_base_post.html → dynastie/sites/blog.soutade.fr/_base_post.html
Normal file → Executable file
0
sites/blog.soutade.fr/_tag.html → dynastie/sites/blog.soutade.fr/_tag.html
Normal file → Executable file
0
sites/blog.soutade.fr/js/blog.js → dynastie/sites/blog.soutade.fr/js/blog.js
Normal file → Executable file
0
static/css/dynastie.css → dynastie/static/css/dynastie.css
Normal file → Executable file
0
static/images/logo.png → dynastie/static/images/logo.png
Normal file → Executable file
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
0
static/js/aes.js → dynastie/static/js/aes.js
Normal file → Executable file
0
static/js/dynastie.js → dynastie/static/js/dynastie.js
Normal file → Executable file
0
static/js/sha1.js → dynastie/static/js/sha1.js
Normal file → Executable file
0
static/js/tinymce/changelog.txt → dynastie/static/js/tinymce/changelog.txt
Normal file → Executable file
0
static/js/tinymce/examples/accessibility.html → dynastie/static/js/tinymce/examples/accessibility.html
Normal file → Executable file
0
static/js/tinymce/examples/css/content.css → dynastie/static/js/tinymce/examples/css/content.css
Normal file → Executable file
0
static/js/tinymce/examples/css/word.css → dynastie/static/js/tinymce/examples/css/word.css
Normal file → Executable file
0
static/js/tinymce/examples/custom_formats.html → dynastie/static/js/tinymce/examples/custom_formats.html
Normal file → Executable file
0
static/js/tinymce/examples/full.html → dynastie/static/js/tinymce/examples/full.html
Normal file → Executable file
0
static/js/tinymce/examples/index.html → dynastie/static/js/tinymce/examples/index.html
Normal file → Executable file
0
static/js/tinymce/examples/lists/image_list.js → dynastie/static/js/tinymce/examples/lists/image_list.js
Normal file → Executable file
0
static/js/tinymce/examples/lists/link_list.js → dynastie/static/js/tinymce/examples/lists/link_list.js
Normal file → Executable file
0
static/js/tinymce/examples/lists/media_list.js → dynastie/static/js/tinymce/examples/lists/media_list.js
Normal file → Executable file
4
static/js/tinymce/examples/lists/template_list.js → dynastie/static/js/tinymce/examples/lists/template_list.js
Normal file → Executable file
|
@ -4,6 +4,6 @@
|
|||
|
||||
var tinyMCETemplateList = [
|
||||
// Name, URL, Description
|
||||
["Simple snippet", "templates/snippet1.htm", "Simple HTML snippet."],
|
||||
["Layout", "templates/layout1.htm", "HTML Layout."]
|
||||
["Simple snippet", "snippet1.htm", "Simple HTML snippet."],
|
||||
["Layout", "layout1.htm", "HTML Layout."]
|
||||
];
|
0
static/js/tinymce/examples/media/logo.jpg → dynastie/static/js/tinymce/examples/media/logo.jpg
Normal file → Executable file
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
0
static/js/tinymce/examples/media/logo_over.jpg → dynastie/static/js/tinymce/examples/media/logo_over.jpg
Normal file → Executable file
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
0
static/js/tinymce/examples/media/sample.avi → dynastie/static/js/tinymce/examples/media/sample.avi
Normal file → Executable file
0
static/js/tinymce/examples/media/sample.dcr → dynastie/static/js/tinymce/examples/media/sample.dcr
Normal file → Executable file
0
static/js/tinymce/examples/media/sample.flv → dynastie/static/js/tinymce/examples/media/sample.flv
Normal file → Executable file
0
static/js/tinymce/examples/media/sample.mov → dynastie/static/js/tinymce/examples/media/sample.mov
Normal file → Executable file
0
static/js/tinymce/examples/media/sample.ram → dynastie/static/js/tinymce/examples/media/sample.ram
Normal file → Executable file
0
static/js/tinymce/examples/media/sample.rm → dynastie/static/js/tinymce/examples/media/sample.rm
Normal file → Executable file
0
static/js/tinymce/examples/media/sample.swf → dynastie/static/js/tinymce/examples/media/sample.swf
Normal file → Executable file
0
static/js/tinymce/examples/menu.html → dynastie/static/js/tinymce/examples/menu.html
Normal file → Executable file
0
static/js/tinymce/examples/simple.html → dynastie/static/js/tinymce/examples/simple.html
Normal file → Executable file
0
static/js/tinymce/examples/skins.html → dynastie/static/js/tinymce/examples/skins.html
Normal file → Executable file
0
static/js/tinymce/examples/templates/layout1.htm → dynastie/static/js/tinymce/examples/templates/layout1.htm
Normal file → Executable file
0
static/js/tinymce/examples/templates/snippet1.htm → dynastie/static/js/tinymce/examples/templates/snippet1.htm
Normal file → Executable file
0
static/js/tinymce/examples/word.html → dynastie/static/js/tinymce/examples/word.html
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/langs/en.js → dynastie/static/js/tinymce/jscripts/tiny_mce/langs/en.js
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/license.txt → dynastie/static/js/tinymce/jscripts/tiny_mce/license.txt
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm
vendored
Normal file → Executable file
0
static/js/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif → dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif
vendored
Normal file → Executable file
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |