Fix a bug : forget to add os.environ['DYNASTIE_ROOT'] in blog add (thanks François Schmidts)
This commit is contained in:
parent
56c32e77f0
commit
fa4dbf48fe
|
@ -60,8 +60,8 @@ class Blog(models.Model):
|
||||||
|
|
||||||
def create(self):
|
def create(self):
|
||||||
self.create_paths()
|
self.create_paths()
|
||||||
if not os.path.exists('sites'):
|
if not os.path.exists(os.environ['DYNASTIE_ROOT'] + 'sites'):
|
||||||
os.mkdir('sites')
|
os.mkdir(os.environ['DYNASTIE_ROOT'] + 'sites')
|
||||||
|
|
||||||
if not os.path.exists(self.src_path):
|
if not os.path.exists(self.src_path):
|
||||||
os.mkdir(self.src_path)
|
os.mkdir(self.src_path)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
<div class="post_header">
|
<div class="post_header">
|
||||||
<dyn:title/>
|
<dyn:title link="1"/>
|
||||||
<div class="post_sub_header">
|
<div class="post_sub_header">
|
||||||
<dyn:date/> | <div class="author_icon"> Écrit par <dyn:author/> </div>
|
<dyn:date/> | <div class="author_icon"> Écrit par <dyn:author/> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user