Where is the location of the template files of pinax-stripe package?

扶醉桌前 提交于 2019-12-12 02:10:17

问题


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:

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?


回答1:


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:

pip install pinax-theme-bootstrap

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.



来源:https://stackoverflow.com/questions/38019165/where-is-the-location-of-the-template-files-of-pinax-stripe-package

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