nginx的配置,设定这个模板映射的路径
location /assets/{ alias /home/luichun/lc/Pyfile/Pyhome/app/statichome_to_nginx/pifu/dist/assets/; }
1:设定一个主页的路由【django主要用来设定逻辑】
2:设定主页的响应内容【使用boostrap框架来对前端展示进行美化】
3:根据模板的js 与css 加入到页面
4:根据想要的内容一点点填充上去
5:分开页面头部,身体,页脚
设置它这个页面html代码的顺序
企业 |空间 - 多用途响应式模板(function () { // INITIALIZATION OF MEGA MENU // ======================================================= const megaMenu = new HSMegaMenu('.js-mega-menu', { desktop: { position: 'left' } }) // INITIALIZATION OF SHOW ANIMATIONS // ======================================================= new HSShowAnimation('.js-animation-link') // INITIALIZATION OF BOOTSTRAP VALIDATION // ======================================================= HSBsValidation.init('.js-validate', { onSubmit: data => { data.event.preventDefault() alert('Submited') } }) })()Log in
Don't have an account yet? Sign up here
Log in
Don't have an account yet? Sign up here
Your email Please enter a valid email address.Password Forgot Password?Please enter a valid password.Log inSign up
Already have an account? Log in here
Sign up
Already have an account? Log in here
Your email Please enter a valid email address.Password Your password is invalid. Please try again.Confirm password Password does not match the confirm password.Sign upBy continuing you agree to our Terms and Conditions
Forgot password?
Enter the email address you used when you joined and we'll send you instructions to reset your password.
默认主页中的图片,它这边是建议使用npm的方式来进行捆绑打包的,但是我觉得太麻烦了,所以
原文件如下
@@include("../..https://blog.csdn.net/assets/vendor/duotone-icons/gen/gen005.svg")
更改为
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。