pinax-stripe程序包的模板文件在哪里? [英] Where is the location of the template files of pinax-stripe package?
问题描述
我已经在django应用程序中安装了以下软件包:
Pinax条纹: https://github.com/pinax/pinax-stripe >
在我的应用程序中,将该应用程序添加到settings.py文件后,可以看到添加订阅"页面.我已经附上了屏幕截图:
但是,当我浏览其文件时,只能看到电子邮件模板,但是看不到网页的任何模板.谁能指出我正确的方向?
我发现
您的site_base.html应该扩展theme_bootstrap/base.html并提供页脚和导航块(后者应该只是一连串的链接). 您的页面应具有head_title和body块,并应扩展site_base.html. URL名称home应该定义为主页. I have installed the following package in my django application: Pinax Stripe : https://github.com/pinax/pinax-stripe In my application, I can see the page for 'add subscription' after I add this application to my settings.py file. I have attached a screenshot: But when I browse its files, I can only see email templates but I can't see any templates for the web pages. Can anyone point me in the right direction where they are? I found what appears to be the correct template files on Github. The easiest way to setup the template would just to be to install the entire package. First, install pinax-theme-bootstrap using: Then, following their instructions online: Include pinax-theme-bootstrap in your requirements file and include pinax_theme_bootstrap and bootstrapform (which is installed alongside this theme) in your INSTALLED APPS. Add django.core.context_processors.request and pinax_theme_bootstrap.context_processors.theme to your TEMPLATE_CONTEXT_PROCESSORS to ensure the user selector and site name work correctly. Make sure both template loaders and staticfiles finders includes app directories. Site name comes from Sites fixture. Your site_base.html should extend theme_bootstrap/base.html and should provide footer and nav blocks (the latter should just be a ul of li of a links). Your pages should have blocks head_title and body and should extend site_base.html. The url name home should be defined as the homepage.
这篇关于pinax-stripe程序包的模板文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!pip install pinax-theme-bootstrap