Do a cleaner package.
Add an Apache sample configuration file Update README with better installation instructions
@@ -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
|
||||
|
||||
@@ -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>
|
||||
@@ -46,7 +46,6 @@ class CategoryForm(ModelForm):
|
||||
class UserForm(ModelForm):
|
||||
class Meta:
|
||||
model = User
|
||||
exclude = ('password')
|
||||
|
||||
class CommentForm(ModelForm):
|
||||
class Meta:
|
||||
@@ -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
|
||||
@@ -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']
|
||||
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
@@ -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."]
|
||||
];
|
||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |