Puput(Wagtail的博客) - 文件在哪里? [英] Puput (Wagtail based blog) - Where are the files?

查看:786
本文介绍了Puput(Wagtail的博客) - 文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在现有的Django项目中添加了一个幼稚博客。我遵循了设置独立博客应用程序的所有步骤( https://puput.readthedocs 。/ / $ / $ / $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ /127.0.0.1:8000/blog/rel =nofollow noreferrer> http://127.0.0.1:8000/blog/ ,可以编辑内容,并在 http://127.0.0.1:8000/blog_admin/
但是所有文件在哪里?具体是模板文件。我的Django项目中没有看到任何新的文件夹或文件。



我想编辑html模板,以获得符合我的项目的布局。但是我找不到要编辑的文件。



我有人可以帮忙。谢谢!

解决方案

puput已经提供了模板( https://github.com/APSL/puput/tree/master/puput/templates/puput ),因此它们与您的python路径一起安装, 。您应该可以在/ lib / site-packages / pupup / templates中找到它们。



要更改他们不要直接从他们的安装位置。相反,复制要在项目中覆盖的模板,保留正确的目录结构(即puput的blog_page.html应该被复制到你的templates / puput / blog_page.html),然后从那里进行编辑。


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!

解决方案

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.

这篇关于Puput(Wagtail的博客) - 文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆