阅读背景:

如何在使用Django模型继承时避免这种冗余?

来源:互联网 

All pages in my Django website have a footer link "Feedback/Questions". If the new person comes to the site and clicks that link, they should be directed to a form with a pulldown to indicate if they have feedback versus a question and fields for their email address and their feedback or question. The page will have a simple header all non-authenticated users will see. On the other hand, if a site member signs in and is authenticated, they should see the same form but without the email field (since I already know their email address) and a different authenticated header containing the site's internal navbar, buttons, etc.All pages in my Django website have a footer li




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: