简体   繁体   中英

Change pinax accounts theme

我有一个Pinax帐户应用程序,所以现在我想自定义默认Pinax帐户应用程序的外观。默认情况下,它具有一些基于我认为的引导程序的主题,现在我想将其替换为基于960gs的自定义主题。我做那个吗?

if you want to completely replace the bootstrap-based theme, you can remove pinax_theme_bootstrap from your INSTALLED_APPS and create your own templates. However, you most likely would want to just use pinax's theme for most templates and just customize the few that needs customizing, then just leave pinax_bootstrap_theme as it is and copy the template files from your site-packages/pinax_theme_bootstrap/templates/ directory to your own PROJECT_PATH/templates/ directory and customize it.

The templates that pinax provides for account app:

$ ls ../env/lib/python2.7/site-packages/pinax_theme_bootstrap/templates/account/ 
base.html             password_delete_done.html       password_set.html
email.html            password_delete.html            signup.html
language_change.html  password_reset_done.html        _signup_sidebar.html
login.html            password_reset_from_key.html    _terms.html
_login_sidebar.html   password_reset.html             timezone_change.html
logout.html           password_reset_key_message.txt  verification_sent.html
password_change.html  password_reset_message.txt

just copy one of those files to your own /templates/ directory for customizing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM