`nikola new_post` problem: posts are not rendered, get directory listing instead

19 views
Skip to first unread message

srust

unread,
Sep 21, 2016, 5:27:19 AM9/21/16
to nikola-discuss
I have successfully generated a page and a blog post, which render correctly in browser. However, adding a second post with `nikola new_post` such post is not rendered, instead directory listing is shown, with `index.txt` listed in the directory with the blog post text.

What am I doing wrong?


srust

unread,
Sep 21, 2016, 7:12:16 AM9/21/16
to nikola-discuss
`nikola-build` log shows that index.htm for the post file generates python error:

TaskError - taskid:render_pages:output/ru/blog/setting-up-the-scene/index.html
PythonAction Error
Traceback (most recent call last):
  File "/Users/srmba3/proj/nikola/lib/python3.5/site-packages/doit/action.py", line 383, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/Users/srmba3/proj/nikola/lib/python3.5/site-packages/nikola/nikola.py", line 1292, in render_template
    template_name, None, local_context)
...

Roberto Alsina

unread,
Sep 21, 2016, 8:08:37 AM9/21/16
to nikola-discuss
Please file an issue at https://github.com/getnikola/nikola/issues and paste the whole traceback in the description.

--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

srust

unread,
Sep 22, 2016, 4:53:05 AM9/22/16
to nikola-discuss, ral...@kde.org
Looks like the issue was due to slug renaming, which I did by hand, probably making a mistake. Reverted the repo and started again, no error. Thanks for pointing to the issue tracker, though.
Reply all
Reply to author
Forward
0 new messages