Puput (Wagtail based blog) - Where are the files?

萝らか妹 提交于 2019-12-22 10:37:53

问题


I've added a puput blog to an existing Django project. I followed all the steps for setting up a standalone blog app (https://puput.readthedocs.io/en/latest/setup.html).

It works fine in that I now have working blog at http://127.0.0.1:8000/blog/ and can edit the content and add new posts at http://127.0.0.1:8000/blog_admin/ . But where are all the files? Specifically the template file. I don't see any new folders or files in my Django project.

I would like to edit the html template in order to get a layout that fits with my project. But I can't find any files to edit.

I how someone can help. Thanks!


回答1:


puput already provides the templates (https://github.com/APSL/puput/tree/master/puput/templates/puput) so they are installed in your python path along with the puput package. You should be able find them in your /lib/site-packages/pupup/templates.

To change them do not edit them directly from their installation location. Instead, copy the templates you want to override in your project keeping the correct directory structure (i.e puput's blog_page.html should be copied to your templates/puput/blog_page.html) and edit them from there.



来源:https://stackoverflow.com/questions/42049697/puput-wagtail-based-blog-where-are-the-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!