Dynastie

Dynastie Commit Details

Date:2015-09-21 19:05:25 (4 years 10 months ago)
Author:Grégory Soutadé
Branch:master
Commit:dd6739461b341aa418d3aa88631b7b87fe64d4bf
Parents: 47f5f97618346587d4cc58dd1209a38c016c4b4d
Message:Update to Django 1.8 + various changes

Changes:
MREADME (1 diff)
Mapache_dynastie.conf (1 diff)
Mdynastie/forms.py (2 diffs)
Mdynastie/models.py (1 diff)
Mdynastie/templates/add_post.html (1 diff)
Mdynastie/templates/edit_draft.html (1 diff)
Mdynastie/templates/edit_post.html (1 diff)

File differences

README
11
22
3
3
44
55
6
6
77
88
99
Dynastie is static blog generator delivered under GPL v3 licence terms.
Current version is 0.2
Current version is 0.5
Requirements :
Django >= 1.4, libapache2-mod-wsgi if you want to use Dynastie with Apache. PyGments (Optional).
Django >= 1.8, libapache2-mod-wsgi if you want to use Dynastie with Apache. PyGments (Optional).
Installation :
* Download Dynastie
apache_dynastie.conf
33
44
55
6
6
7
8
79
810
911
DocumentRoot /home/soutade/dynastie/dynastie/
WSGIScriptAlias / /home/soutade/dynastie/dynastie/wsgi.py
WSGIDaemonProcess django-dynastie
WSGIProcessGroup django-dynastie
WSGIScriptAlias / /var/www/dynastie/dynastie/wsgi.py
Alias /static /home/soutade/dynastie/dynastie/static
dynastie/forms.py
2424
2525
2626
27
2728
2829
2930
......
5152
5253
5354
55
5456
5557
5658
class BlogForm(ModelForm):
class Meta:
model = Blog
exclude = ()
class PostForm(ModelForm):
description = forms.CharField(widget=forms.Textarea(attrs={'rows':'5', 'cols':'50'}), required=False)
class UserForm(ModelForm):
class Meta:
model = User
exclude = ('groups', 'user_permissions', 'date_joined')
class CommentForm(ModelForm):
class Meta:
dynastie/models.py
116116
117117
118118
119
119
120
121
120122
121123
122124
if os.path.isdir(srcname):
if not os.path.exists(dstname):
os.makedirs(dstname)
self.copytree(srcname, dstname)
self.copytree(srcname, dstname, ignore=True)
else:
return self.copytree(srcname, dstname)
else:
copied = False
if os.path.exists(dstname):
dynastie/templates/add_post.html
6868
6969
7070
71
71
72
73
74
7275
7376
7477
<pre style="display:inline">#[Inline Picture](https://bits.wikimedia.org/images/wikimedia-button.png)</pre><img src="https://bits.wikimedia.org/images/wikimedia-button.png" alt="Picture"/><br/>
<pre style="display:inline">[Link](http://www.wikipedia.org)</pre> <a href="http://www.wikipedia.org">Link</a><br/><br/>
<pre>
Code : 4 whitespaces ahead
Code : 4 whitespaces ahead OR
```language
Code
```
</pre>
</td>
<td>
dynastie/templates/edit_draft.html
6767
6868
6969
70
70
71
72
73
7174
7275
7376
<pre style="display:inline">#[Inline Picture](https://bits.wikimedia.org/images/wikimedia-button.png)</pre><img src="https://bits.wikimedia.org/images/wikimedia-button.png" alt="Picture"/><br/>
<pre style="display:inline">[Link](http://www.wikipedia.org)</pre> <a href="http://www.wikipedia.org">Link</a><br/><br/>
<pre>
Code : 4 whitespaces ahead
Code : 4 whitespaces ahead OR
```language
Code
```
</pre>
</td>
<td>
dynastie/templates/edit_post.html
8080
8181
8282
83
83
84
85
86
8487
8588
8689
<pre style="display:inline">#[Inline Picture](https://bits.wikimedia.org/images/wikimedia-button.png)</pre><img src="https://bits.wikimedia.org/images/wikimedia-button.png" alt="Picture"/><br/>
<pre style="display:inline">[Link](http://www.wikipedia.org)</pre> <a href="http://www.wikipedia.org">Link</a><br/><br/>
<pre>
Code : 4 whitespaces ahead
Code : 4 whitespaces ahead OR
```language
Code
```
</pre>
</td>
<td>

Archive Download the corresponding diff file

Branches

Tags