Fix a bug : forget to add os.environ['DYNASTIE_ROOT'] in blog add (thanks François Schmidts)

This commit is contained in:
Gregory Soutade 2013-10-10 18:37:52 +02:00
parent 56c32e77f0
commit fa4dbf48fe
2 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ class Blog(models.Model):
def create(self):
self.create_paths()
if not os.path.exists('sites'):
os.mkdir('sites')
if not os.path.exists(os.environ['DYNASTIE_ROOT'] + 'sites'):
os.mkdir(os.environ['DYNASTIE_ROOT'] + 'sites')
if not os.path.exists(self.src_path):
os.mkdir(self.src_path)

View File

@ -3,7 +3,7 @@
<article>
<header>
<div class="post_header">
<dyn:title/>
<dyn:title link="1"/>
<div class="post_sub_header">
<dyn:date/> | <div class="author_icon"> Écrit par <dyn:author/> </div>
</div>